You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several functions which are relevant to multiple objects, so I created some macros to reduce code duplication. When I generate the header file, the generated functions are excluded from the header file. I can see the symbols are present in the generated shared object library.
I read somewhere that I needed to set [parse.expand] crates in my cbindgen.toml in order to pre-process the sources to generate the header correctly. I tried this, and it made no difference at all.
I'm using cargo cbuild to wrap cbindgen, but the same happens manually calling cbindgen.
Notice that I'm having to manually include the function prototypes for macro generated functions in my cbindgen.toml, because I couldn't find a way to pre-process and expand the macros.
I have several functions which are relevant to multiple objects, so I created some macros to reduce code duplication. When I generate the header file, the generated functions are excluded from the header file. I can see the symbols are present in the generated shared object library.
I read somewhere that I needed to set [parse.expand] crates in my cbindgen.toml in order to pre-process the sources to generate the header correctly. I tried this, and it made no difference at all.
I'm using cargo cbuild to wrap cbindgen, but the same happens manually calling cbindgen.
You can see the sources here: https://gitlab.com/davidmmulder/libhimmelblau/-/tree/dmulder/serialize_deserialize?ref_type=heads
The text was updated successfully, but these errors were encountered: