diff options
| author | Veikka Tuominen <git@vexu.eu> | 2021-09-19 11:51:32 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-20 20:50:55 -0700 |
| commit | 9a54ff72df5cc8631c467f3478117eb85a952ced (patch) | |
| tree | c303fa7cdde3c8165d034da1ed8357175c260e3d /src/Module.zig | |
| parent | 1ad905c71e0896295d4781853cd577bbe1b4111a (diff) | |
| download | zig-9a54ff72df5cc8631c467f3478117eb85a952ced.tar.gz zig-9a54ff72df5cc8631c467f3478117eb85a952ced.zip | |
stage2: implement cImport
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig index 500c34bcb0..6a183db21f 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -1325,6 +1325,8 @@ pub const Scope = struct { /// when null, it is determined by build mode, changed by @setRuntimeSafety want_safety: ?bool = null, + c_import_buf: ?*std.ArrayList(u8) = null, + const Param = struct { /// `noreturn` means `anytype`. ty: Type, @@ -1377,6 +1379,7 @@ pub const Scope = struct { .runtime_loop = parent.runtime_loop, .runtime_index = parent.runtime_index, .want_safety = parent.want_safety, + .c_import_buf = parent.c_import_buf, }; } |
