Skip to content

Commit

Permalink
- Added variable declarations to function_sampleInit.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12202 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jun 25, 2012
1 parent 34fafea commit bf7c4b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/Template/CodegenC.tpl
Expand Up @@ -675,6 +675,8 @@ template functionInitSample(list<SampleCondition> sampleConditions)
void function_sampleInit(DATA *data)
{
<%if timeEventCode then "int i = 0; // Current index"%>
<%varDecls%>
<%timeEventCode%>
}
>>
Expand Down

0 comments on commit bf7c4b4

Please sign in to comment.