Skip to content

Commit

Permalink
fix: alse use (void) in the R code generator (in another place)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Feb 6, 2024
1 parent a3c7b5b commit 5d8a576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stimulus/generators/r.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def do_par(spec: ParamSpec) -> str:

inout = [do_par(spec) for spec in desc.iter_input_parameters()]
inout = ["SEXP " + n for n in inout if n != ""]
return "SEXP R_" + desc.name + "(" + ", ".join(inout) + ")"
return "SEXP R_" + desc.name + "(" + (", ".join(inout) or "void") + ")"

def chunk_declaration(self, desc: FunctionDescriptor) -> str:
"""There are a couple of things to declare. First a C type is
Expand Down

0 comments on commit 5d8a576

Please sign in to comment.