Skip to content

Commit

Permalink
removed some result output variables in cpp template
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21794 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Aug 7, 2014
1 parent 6939e83 commit 2223624
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 127 deletions.
21 changes: 21 additions & 0 deletions Compiler/BackEnd/SimCodeUtil.mo
Expand Up @@ -203,6 +203,27 @@ algorithm
outInt := inInt - decrement;
end decrementInt;


public function protectedVars
input list<SimCode.SimVar> InSimVars;
output list<SimCode.SimVar> OutSimVars;
algorithm
OutSimVars:= List.filterOnTrue(InSimVars,isNotProtected);
end protectedVars;

protected function isNotProtected
input SimCode.SimVar simVar;
output Boolean outIsProtected;
algorithm
isProtected:= match(simVar)
case(SimCode.SIMVAR(isProtected=true))
then false;
else
true;
end match;
end isProtected;


public function makeCrefRecordExp
"Helper function to generate records."
input DAE.ComponentRef inCRefRecord;
Expand Down

0 comments on commit 2223624

Please sign in to comment.