mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
Fix misplaced line number (was wrongly formatted and before procedure)
This commit is contained in:
@@ -127,12 +127,6 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca
|
||||
if Location_File_Opts & opts != nil {
|
||||
fmt.sbprint(buf, file);
|
||||
}
|
||||
if .Line in opts {
|
||||
if (Location_File_Opts | {.Procedure}) & opts != nil {
|
||||
fmt.sbprint(buf, ":");
|
||||
}
|
||||
fmt.sbprint(buf, location.line);
|
||||
}
|
||||
|
||||
if .Procedure in opts {
|
||||
if Location_File_Opts & opts != nil {
|
||||
@@ -141,6 +135,12 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca
|
||||
fmt.sbprintf(buf, "%s()", location.procedure);
|
||||
}
|
||||
|
||||
if .Line in opts {
|
||||
if (Location_File_Opts | {.Procedure}) & opts != nil {
|
||||
fmt.sbprint(buf, ":");
|
||||
}
|
||||
fmt.sbprint(buf, location.line);
|
||||
}
|
||||
|
||||
fmt.sbprint(buf, "] ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user