Skip to content

Commit

Permalink
C_CPP: Fix inner struct pass to func
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Jul 18, 2023
1 parent b81d0d7 commit 96433ad
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/libasr/codegen/asr_to_c_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1079,15 +1079,7 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
+ "' not implemented");
}
} else {
std::string args;
bracket_open++;
for (size_t i=0; i<x.n_args; i++) {
self().visit_expr(*x.m_args[i].m_value);
args += src;
if (i < x.n_args-1) args += ", ";
}
bracket_open--;
src = fn_name + "(" + args + ")";
src = fn_name + "(" + construct_call_args(x.n_args, x.m_args) + ")";
}
last_expr_precedence = 2;
if( ASR::is_a<ASR::List_t>(*x.m_type) ) {
Expand Down

0 comments on commit 96433ad

Please sign in to comment.