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 e476706 commit 0fb031fCopy full SHA for 0fb031f
codegen/rust/src/statement.rs
@@ -347,6 +347,16 @@ impl<'a> StatementGenerator<'a> {
347
args.push(quote! { #arg });
348
}
349
350
+ // pass externs instantiated at control scope to actions
351
+ for x in &control.variables {
352
+ if let Type::UserDefined(typename) = &x.ty {
353
+ if self.ast.get_extern(typename).is_some() {
354
+ let arg = format_ident!("{}", x.name);
355
+ args.push(quote! { & #arg });
356
+ }
357
358
359
+
360
tokens.extend(quote! {
361
#(#lvref).*(#(#args),*);
362
})
0 commit comments