File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/Generator/Generators/CLI Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ public void GenerateTypedefs(DeclarationContext decl)
218218
219219 public void GenerateFunctions ( DeclarationContext decl )
220220 {
221- PushBlock ( BlockKind . FunctionsClass ) ;
221+ PushBlock ( BlockKind . FunctionsClass , decl ) ;
222222
223223 WriteLine ( "public ref class {0}" , TranslationUnit . FileNameWithoutExtension ) ;
224224 WriteLine ( "{" ) ;
Original file line number Diff line number Diff line change @@ -95,12 +95,14 @@ private void GenerateDeclContext(DeclarationContext @namespace)
9595 GenerateClass ( @class ) ;
9696 }
9797
98+ PushBlock ( BlockKind . FunctionsClass , @namespace ) ;
9899 // Generate all the function declarations for the module.
99100 foreach ( var function in @namespace . Functions . Where ( f => f . IsGenerated ) )
100101 {
101102 GenerateFunction ( function , @namespace ) ;
102103 NewLine ( ) ;
103104 }
105+ PopBlock ( ) ;
104106
105107 if ( Options . GenerateFunctionTemplates )
106108 {
You can’t perform that action at this time.
0 commit comments