mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 10:50:05 +00:00
#location(..) and #call_location
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user