Skip to content

Commit

Permalink
-changed functions from call by value to call by reference
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21870 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
RuedKamp committed Aug 14, 2014
1 parent 26f9d7d commit 431bc16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -2203,7 +2203,7 @@ case RECORD_CONSTRUCTOR(__) then
<<
void /*<%retType%>*/ Functions::<%fname%>(<%funArgs |> var as VARIABLE(__) => '<%varType1(var,simCode)%> <%crefStr(name)%>' ;separator=", "%>,<%retType%>& output )
{
<%funArgs |> VARIABLE(__) => 'output.<%crefStr(name)%> = <%crefStr(name)%>;' ;separator="\n"%>
<%funArgs |> VARIABLE(__) => '(output.<%crefStr(name)%>) = (<%crefStr(name)%>);' ;separator="\n"%>
//output = <%structVar%>;
//return <%structVar%>;
}
Expand Down Expand Up @@ -2381,7 +2381,7 @@ case efn as EXTERNAL_FUNCTION(__) then
/* functionBodyExternalFunction: callPart */
<%callPart%>
/* functionBodyExternalFunction: return */
return <%retVar%>;
output = <%retVar%>;
}
>>
<<
Expand Down

0 comments on commit 431bc16

Please sign in to comment.