diff options
| author | Vexu <git@vexu.eu> | 2020-06-18 20:45:48 +0300 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-06-18 21:11:09 +0300 |
| commit | a5379aa3ee376197820f1526c88921607a787a11 (patch) | |
| tree | d3deed16bb0e9da2ac8b5e8b4c4b80c221816a2b /lib/std | |
| parent | 9781342042798f7a75f3f7233872bae0fbde3ecc (diff) | |
| download | zig-a5379aa3ee376197820f1526c88921607a787a11.tar.gz zig-a5379aa3ee376197820f1526c88921607a787a11.zip | |
implement `@src`
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index af8033ae91..822901be73 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -131,6 +131,15 @@ pub const CallingConvention = enum { AAPCSVFP, }; +/// 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 { + file: []const u8, + fn_name: []const u8, + line: u32, + column: u32, +}; + pub const TypeId = @TagType(TypeInfo); /// This data structure is used by the Zig language code generation and |
