Skip to content

Commit

Permalink
fix Cpp code generation for complex types
Browse files Browse the repository at this point in the history
See e.g. Modelica.Media.Examples.MixtureGases


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25739 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
rfranke committed Apr 25, 2015
1 parent c3ab2b8 commit e6017b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -8882,7 +8882,7 @@ template expTypeShort(DAE.Type type)
case T_ARRAY(__) then expTypeShort(ty)
case T_COMPLEX(complexClassType=EXTERNAL_OBJ(__))
then "void*"
case T_COMPLEX(__) then 'ComplexType'
case T_COMPLEX(__) then '<%underscorePath(ClassInf.getStateName(complexClassType))%>Type'
case T_METATYPE(__) case T_METABOXED(__) then "metatype"
case T_FUNCTION_REFERENCE_VAR(__) then "fnptr"
else "expTypeShort:ERROR"
Expand Down

0 comments on commit e6017b4

Please sign in to comment.