mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-13 16:25:25 +00:00
Merge pull request #685 from ThisDrunkDane/master
Fix misplaced line number in log (was wrongly formatted and before procedure)
This commit is contained in:
@@ -128,19 +128,18 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca
|
||||
fmt.sbprint(buf, file);
|
||||
}
|
||||
if .Line in opts {
|
||||
if (Location_File_Opts | {.Procedure}) & opts != nil {
|
||||
if Location_File_Opts & opts != nil {
|
||||
fmt.sbprint(buf, ":");
|
||||
}
|
||||
fmt.sbprint(buf, location.line);
|
||||
}
|
||||
|
||||
if .Procedure in opts {
|
||||
if Location_File_Opts & opts != nil {
|
||||
if (Location_File_Opts | {.Line}) & opts != nil {
|
||||
fmt.sbprint(buf, ":");
|
||||
}
|
||||
fmt.sbprintf(buf, "%s()", location.procedure);
|
||||
}
|
||||
|
||||
|
||||
fmt.sbprint(buf, "] ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user