Skip to content

Commit

Permalink
added accidentally removed function in cpp template
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21981 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Aug 25, 2014
1 parent 2ca1f03 commit f15686d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -6696,6 +6696,16 @@ template expTypeFlag(DAE.Type ty, Integer flag)
case T_ARRAY(dims=dims) then'BaseArray<<%expTypeShort(ty)%>>&'
else expTypeFlag(ty, 2)
end match
case 9 then
// we want the "modelica type"
match ty case T_COMPLEX(complexClassType=EXTERNAL_OBJ(__)) then
'<%expTypeShort(ty)%>'
else match ty case T_COMPLEX(complexClassType=RECORD(path=rname)) then
'<%underscorePath(rname)%>Type &'
else match ty case T_COMPLEX(__) then
'<%underscorePath(ClassInf.getStateName(complexClassType))%> &'
else
'<%expTypeShort(ty)%>'

end expTypeFlag;

Expand Down

0 comments on commit f15686d

Please sign in to comment.