Commit 378fea90 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Return access type (pointer), not value

When generating code for simulation/shared lib, the functions returning
the internal variables must return a pointer to the variables, not the
variables themselves (which happened with records even if the variables
were declared as aliased)
parent d2688f71
......@@ -197,8 +197,9 @@ def _process(process, simu=False, **kwargs):
"Convention => C, "
'Link_Name => "{name}_size";'
process_level_decl.append("function l_{name}_value return {sort} "
"is (l_{name}) with Export, "
process_level_decl.append("function l_{name}_value"
" return access {sort} "
"is (l_{name}'access) with Export, "
"Convention => C, "
'Link_Name => "{name}_value";'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment