Skip to content

Commit

Permalink
Add error if daeExpCall finds no match
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Nov 3, 2016
1 parent 3cd68ac commit 73f7fca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/Template/CodegenCppCommon.tpl
Expand Up @@ -2143,6 +2143,8 @@ template daeExpCall(Exp call, Context context, Text &preExp /*BUFP*/, Text &varD
else '<%contextFunName(funName, context)%>(<%argStr%><%if explist then if retVar then "," %> <%if retVar then '<%retVar%>'%>);<%\n%>'
'<%retVar%>'

else
error(sourceInfo(), 'Code generation does not support daeExpCall(<%ExpressionDumpTpl.dumpExp(call,"\"")%>)')
end daeExpCall;

template daeExpCallStart(Exp exp, Context context, Text &preExp /*BUFP*/,
Expand Down

0 comments on commit 73f7fca

Please sign in to comment.