File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,8 @@ JLCXX_API jl_array_t* get_module_functions(jl_module_t* jlmod)
147
147
{
148
148
Array<jl_value_t *> arg_default_values_array;
149
149
jl_value_t * boxed_n_kwargs = nullptr ;
150
- JL_GC_PUSH2 (arg_default_values_array.gc_pointer (), &boxed_n_kwargs);
150
+ jl_value_t * cppfuncinfo = nullptr ;
151
+ JL_GC_PUSH3 (arg_default_values_array.gc_pointer (), &boxed_n_kwargs, &cppfuncinfo);
151
152
152
153
fill_types_vec (arg_types_array, f.argument_types ());
153
154
@@ -169,7 +170,7 @@ JLCXX_API jl_array_t* get_module_functions(jl_module_t* jlmod)
169
170
julia_return_type = ccall_return_type;
170
171
}
171
172
172
- function_array. push_back ( jl_new_struct (g_cppfunctioninfo_type,
173
+ cppfuncinfo = jl_new_struct (g_cppfunctioninfo_type,
173
174
f.name (),
174
175
arg_types_array.wrapped (),
175
176
ccall_return_type,
@@ -181,7 +182,8 @@ JLCXX_API jl_array_t* get_module_functions(jl_module_t* jlmod)
181
182
arg_names_array.wrapped (),
182
183
arg_default_values_array.wrapped (),
183
184
boxed_n_kwargs
184
- ));
185
+ );
186
+ function_array.push_back (cppfuncinfo);
185
187
JL_GC_POP ();
186
188
}
187
189
JL_GC_POP ();
You can’t perform that action at this time.
0 commit comments