#location(..) and #call_location

This commit is contained in:
Ginger Bill
2017-06-18 14:36:06 +01:00
parent e4944b4f2e
commit 4236519b84
11 changed files with 241 additions and 96 deletions
+13
View File
@@ -184,6 +184,19 @@ type (
#thread_local var __context: Context;
type SourceCodeLocation struct {
fully_pathed_filename: string,
procedure: string,
line, column: i64,
}
proc make_source_code_location(file, procedure: string, line, column: i64) -> SourceCodeLocation {
return SourceCodeLocation{file, procedure, line, column};
}
const DEFAULT_ALIGNMENT = align_of([vector 4]f32);