CodeLocation

Declaration

CodeLocation :: struct #compiler {
    file: string;
    line: s32;
}

Description

Type of source code location used by #call_location directive.

Members

  • file Name of the source file.

  • line Line in source file.

Example

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

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

Declared in: a.bl