Skip to content

Commit

Permalink
fix for unknown type in cpp template
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20688 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed May 19, 2014
1 parent 4f4aa15 commit 43d669d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -5562,12 +5562,13 @@ template expTypeShort(DAE.Type type)
case T_STRING(__) then if acceptMetaModelicaGrammar() then "metatype" else "string"
case T_BOOL(__) then "bool"
case T_ENUMERATION(__) then "int"
case T_UNKNOWN(__) then "complex"
case T_ANYTYPE(__) then "complex"
/* assumming real for uknown type! */
case T_UNKNOWN(__) then "double /*W1*/"
case T_ANYTYPE(__) then "complex2"
case T_ARRAY(__) then expTypeShort(ty)
case T_COMPLEX(complexClassType=EXTERNAL_OBJ(__))
then "void*"
case T_COMPLEX(__) then 'complex'
case T_COMPLEX(__) then 'complex3'
case T_METATYPE(__) case T_METABOXED(__) then "metatype"
case T_FUNCTION_REFERENCE_VAR(__) then "fnptr"
else "expTypeShort:ERROR"
Expand Down Expand Up @@ -6568,7 +6569,7 @@ case SES_SIMPLE_ASSIGN(__) then
else
<<
<%preExp%>
/*blubb*/

<%cref1(cref, simCode, context, varDecls)%>=<%expPart%>;
>>
end match
Expand Down

0 comments on commit 43d669d

Please sign in to comment.