top | item 40969290

(no title)

mcronce | 1 year ago

That's what bindgen is for, as was mentioned in the original comment you replied to.

discuss

order

varjag|1 year ago

How well does it handle preprocessor macros in APIs?

marshray|1 year ago

I have used it successfully against header files for Win32 COM interfaces generated from IDL which include major parts of the infamous "windows.h". Almost every type is a macro.

This is an extremely well-understood space.

Just open the docs and do it.