mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +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 {
|
if Location_File_Opts & opts != nil {
|
||||||
fmt.sbprint(buf, file);
|
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 .Procedure in opts {
|
||||||
if Location_File_Opts & opts != nil {
|
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);
|
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, "] ");
|
fmt.sbprint(buf, "] ");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user