We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f02774 commit 35326daCopy full SHA for 35326da
src/lib/wrap/root.zig
@@ -6,7 +6,12 @@ const assert = std.debug.assert;
6
pub const dlfcn = @import("dlfcn.zig");
7
pub const fs = @import("fs.zig");
8
9
-// Check type assumptions.
10
comptime {
+ // Check type assumptions.
11
assert(@sizeOf(c_char) == @sizeOf(u8));
12
+
13
+ // Reference all decls since they include exports.
14
+ for (std.meta.declarations(@This())) |decl| {
15
+ _ = &@field(@This(), decl.name);
16
+ }
17
}
0 commit comments