2 ms·
To do this in Zig you would ship a binary + a "header" file that looks like: `pub extern fn foo(c_int) c_int;` etc. then import with `usingnamespace @import("
by defen 5y ago
To do this in Zig you would ship a binary + a "header" file that looks like:
`pub extern fn foo(c_int) c_int;` etc.
then import with `usingnamespace @import("./my_header.zig");` and now you have a function `foo` that you can call; then you just need to link with the object file that defines it. Is your complaint that you still need the "header" file? What language / tools do you use that let you skip that part?