4 ms·
Searched a bit on Project Panama, found an example: @Header(path="unistd.h") While indeed very easy to use, that API is extremely hard to implement in the
by Const-me 9y ago
Searched a bit on Project Panama, found an example:
@Header(path="unistd.h")
While indeed very easy to use, that API is extremely hard to implement in the runtime to make it work not just for toy examples. Authors of real world libraries do all kinds of weird stuff in their C headers: they abuse C preprocessor, implement compiler-specific hacks, and even include pieces generated by external tools.