We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 803d73e commit b9c6984Copy full SHA for b9c6984
bindgen/ir/var.rs
@@ -427,10 +427,10 @@ fn parse_macro(
427
) -> Option<(Vec<u8>, cexpr::expr::EvalResult)> {
428
use cexpr::expr;
429
430
- let cexpr_tokens = cursor.cexpr_tokens();
+ let mut cexpr_tokens = cursor.cexpr_tokens();
431
432
- if let Some(callbacks) = ctx.options.parse_callbacks() {
433
- callbacks.modify_macro(cursor.spelling(), &mut cexpr_tokens);
+ for callbacks in &ctx.options().parse_callbacks {
+ callbacks.modify_macro(&cursor.spelling(), &mut cexpr_tokens);
434
}
435
436
let parser = expr::IdentifierParser::new(ctx.parsed_macros());
0 commit comments