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)
218
218
219
219
public void GenerateFunctions ( DeclarationContext decl )
220
220
{
221
- PushBlock ( BlockKind . FunctionsClass ) ;
221
+ PushBlock ( BlockKind . FunctionsClass , decl ) ;
222
222
223
223
WriteLine ( "public ref class {0}" , TranslationUnit . FileNameWithoutExtension ) ;
224
224
WriteLine ( "{" ) ;
Original file line number Diff line number Diff line change @@ -95,12 +95,14 @@ private void GenerateDeclContext(DeclarationContext @namespace)
95
95
GenerateClass ( @class ) ;
96
96
}
97
97
98
+ PushBlock ( BlockKind . FunctionsClass , @namespace ) ;
98
99
// Generate all the function declarations for the module.
99
100
foreach ( var function in @namespace . Functions . Where ( f => f . IsGenerated ) )
100
101
{
101
102
GenerateFunction ( function , @namespace ) ;
102
103
NewLine ( ) ;
103
104
}
105
+ PopBlock ( ) ;
104
106
105
107
if ( Options . GenerateFunctionTemplates )
106
108
{
You can’t perform that action at this time.
0 commit comments