Skip to content

Commit 2e36040

Browse files
committed
update zig1.wasm
Removes the first argument of `@fieldParentPtr`.
1 parent cb5deb5 commit 2e36040

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

stage1/zig.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,14 @@ typedef char bool;
165165
#endif
166166

167167
#if zig_has_attribute(section)
168-
#define zig_linksection(name, def, ...) def __attribute__((section(name)))
168+
#define zig_linksection(name) __attribute__((section(name)))
169+
#define zig_linksection_fn zig_linksection
169170
#elif _MSC_VER
170-
#define zig_linksection(name, def, ...) __pragma(section(name, __VA_ARGS__)) __declspec(allocate(name)) def
171+
#define zig_linksection(name) __pragma(section(name, read, write)) __declspec(allocate(name))
172+
#define zig_linksection_fn(name) __pragma(section(name, read, execute)) __declspec(code_seg(name))
171173
#else
172-
#define zig_linksection(name, def, ...) zig_linksection_unavailable
174+
#define zig_linksection(name) zig_linksection_unavailable
175+
#define zig_linksection_fn zig_linksection
173176
#endif
174177

175178
#if zig_has_builtin(unreachable) || defined(zig_gnuc)

stage1/zig1.wasm

143 KB
Binary file not shown.

0 commit comments

Comments
 (0)