#Zig equivalent of GCC's __attribute__((constructor))?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
Is there some way to have a function in a zig shared library execute at load time similar to how GCC has __attribute__((constructor))?
Zig equivalent of GCC's __attribute__((constructor))?
Zig equivalent of GCC's attribute((constructor))?
nope
you can write a C stub to do it
or you can try to do it with a linker script but that's a bit involved
ah