Skip to content

Commit

Permalink
minor bugfixes for cppRuntime: sample needs to be implemented.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17263 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Christian SChubert committed Sep 16, 2013
1 parent 09a0796 commit ac5ecc5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -3092,7 +3092,7 @@ template cref(ComponentRef cr)
"Generates C equivalent name for component reference."
::=
match cr
case CREF_IDENT(ident = "time") then "time"
case CREF_IDENT(ident = "time") then "_simTime"
case WILD(__) then ''
else "_"+crefToCStr(cr)
end cref;
Expand Down Expand Up @@ -6859,7 +6859,14 @@ template giveZeroFunc3(Integer index1, Exp relation, Text &varDecls /*BUFP*/,Tex
else
f[<%index1%>]=(<%e1%> - EPSILON - <%e2%>);
>>
else
error(sourceInfo(), ' UNKNOWN RELATION for <%index1%>')
end match
case CALL(path=IDENT(name="sample"), expLst={_, start, interval}) then
error(sourceInfo(), ' sample not supported for <%index1%> ')
else
error(sourceInfo(), ' UNKNOWN ZERO CROSSING for <%index1%> ')
end match
end giveZeroFunc3;

/*
Expand Down

0 comments on commit ac5ecc5

Please sign in to comment.