CodeLocation

CodeLocation :: struct {
    file: string;
    line: s32;
    hash: u32;
}

Type of source code location used by #call_location directive.

Example

foo :: fn (loc: *CodeLocation = #call_location) {
    print("%\n", ^loc);
}

main :: fn () s32 {
    foo();
    return 0;
}

Members

file - Full path of the source file.

line - Line in source file.

hash - File and line string combination hash.

Declared in: a.bl