You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importcgenascdecl=c.Value('float', 'temp')
assign=c.Assign('temp', 'func(1)')
# make it nestedassign=c.Assign(decl.__str__()[:-1], assign.rvalue)
print(assign)
I have a
cgen.Value("float", "temp")
and an assignemnt,cgen.Assign("temp", "somefunc(1)")
. It will generate the following C codeHow to make the generated C code more nested from cgen.Value and cgen.Assign, such that it will look like:
The text was updated successfully, but these errors were encountered: