Problem
// C++ API to be wrapped:
size_t foo();
Generates code replacing size_t with unsigned long. Which is OK... until you try to build the generated sources in another platform (e.g. armhf, etc.) where size_t becomes something else, so the generated pattern code doesn't match anymore the original C++ API and fails to build. A solution might be re-running binder for each architecture, but I would like to avoid it.
Questions
- Within binder, where is the type
size_t and such converted into their underlying types?
- What would you think about a new config option to "freeze" certain types such that they are not resolved into their underlying types (if this is even possible...)
If you give me some pointers, I would be glad to attempt to implement it and PR.
Problem
Generates code replacing
size_twithunsigned long. Which is OK... until you try to build the generated sources in another platform (e.g. armhf, etc.) wheresize_tbecomes something else, so the generated pattern code doesn't match anymore the original C++ API and fails to build. A solution might be re-running binder for each architecture, but I would like to avoid it.Questions
size_tand such converted into their underlying types?If you give me some pointers, I would be glad to attempt to implement it and PR.