#Can zig translate-c output cImport and cInclude instead of inlining headers?
1 messages · Page 1 of 1 (latest)
Not afaik
Yeah no
Would be pretty complicated because of the weird semantics of the preprocessor
It would not replace the things ig
Am I correct to say, i could hand translate hello.c to zig and write @cInclude?
Yea
You would need to find the things that got translated from hello.c and do the c_import
maybe some manual stuff to fix
ya, that's what i'm going with. thanks
We're humans. We are infinitely smarter at doing intuitive reasoning of that sort.
but this human has weak c heh
i'm sure i'll figure it out. at least the main function is in zig now and that is much easier on the eyes