Reorder log.do_location_header order

This commit is contained in:
gingerBill
2020-06-19 15:24:42 +01:00
parent 34384cc2f1
commit 2a6130b7e1
+4 -2
View File
@@ -128,13 +128,15 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca
fmt.sbprint(buf, file);
}
if .Line in opts {
if Location_File_Opts & opts != nil || .Procedure in opts do fmt.sbprint(buf, ":");
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 {
fmt.sbprint(buf, ".");
fmt.sbprint(buf, ":");
}
fmt.sbprintf(buf, "%s()", location.procedure);
}