Skip to content

Commit 39d692c

Browse files
committed
Support callbacks in C
1 parent 1a17905 commit 39d692c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libasr/codegen/asr_to_c.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,8 @@ R"(
739739
array_types_decls.insert(0, "struct dimension_descriptor\n"
740740
"{\n int32_t lower_bound, length;\n};\n");
741741
}
742-
743-
src = to_include + head + array_types_decls + unit_src +
742+
forward_decl_functions += "\n\n";
743+
src = to_include + head + array_types_decls + forward_decl_functions + unit_src +
744744
ds_funcs_defined + util_funcs_defined;
745745
if (!emit_headers.empty()) {
746746
std::string to_includes_1 = "";

0 commit comments

Comments
 (0)