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
ATM if bindgen user needs to parse macros by hand, he's forced to do it manually - know all headers involved, parse them by hand and finally do something with parsing results.
I think it would be beneficial if ParseCallbacks would provide way to not only get notified that certain macro was parsed, but also have its body, at least as a string.
Changes proposed, discussion welcome:
pubtraitParseCallbacks{// Provides callback implementor ways to customize macro parsing// @param name - macro name// @param args - list of macro arguments; None for constant macro;// Some(...) for function-like macro,// with vector containing argument identifiers// @param body - raw macro body as a string slice, allows to parse it by hand// @return None to perform default parsing;// Some(...) to insert specified text into generated bindings modulefnparsed_macro(&self,name:&str,args:Option<Vec<&str>>,body:&str) -> Option<String>;// ... leftover}
The text was updated successfully, but these errors were encountered:
ATM if bindgen user needs to parse macros by hand, he's forced to do it manually - know all headers involved, parse them by hand and finally do something with parsing results.
I think it would be beneficial if ParseCallbacks would provide way to not only get notified that certain macro was parsed, but also have its body, at least as a string.
Changes proposed, discussion welcome:
The text was updated successfully, but these errors were encountered: