diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-08-07 14:05:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-08-08 07:47:14 -0700 |
| commit | cf87a1a7cf57123aad533a73d8e0fa4d4916a674 (patch) | |
| tree | eec5763a778319fbc8aafe991a2ff504223fdc48 /lib/std | |
| parent | ca012e5b69b9ff275c6e366c0348219d1c816f18 (diff) | |
| download | zig-cf87a1a7cf57123aad533a73d8e0fa4d4916a674.tar.gz zig-cf87a1a7cf57123aad533a73d8e0fa4d4916a674.zip | |
language: add module name field to `@src`
closes #20963
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 176b17dd07..e1c90b34c8 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -243,6 +243,9 @@ pub const AddressSpace = enum(u5) { /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const SourceLocation = struct { + /// The name chosen when compiling. Not a file path. + module: [:0]const u8, + /// Relative to the root directory of its module. file: [:0]const u8, fn_name: [:0]const u8, line: u32, |
