Skip to content

Commit

Permalink
- Partial fix for LineForceWithTwoMasses (preprocessor macros now do …
Browse files Browse the repository at this point in the history
…not fail)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11108 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 13, 2012
1 parent 28ecd8d commit 853b481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/susan_codegen/SimCode/CodegenC.tpl
Expand Up @@ -5443,14 +5443,14 @@ template daeExpCall(Exp call, Context context, Text &preExp /*BUFP*/,
else tempDecl(retType, &varDecls)
let &preExp += if not attr.builtin then match context case SIMULATION(__) then
<<
#ifdef _OMC_MEASURE_TIME
<%\n%>#ifdef _OMC_MEASURE_TIME
SIM_PROF_TICK_FN(<%funName%>_index);
#endif<%\n%>
>>
let &preExp += '<%if retVar then '<%retVar%> = '%><%daeExpCallBuiltinPrefix(attr.builtin)%><%funName%>(<%argStr%>);<%\n%>'
let &preExp += if not attr.builtin then match context case SIMULATION(__) then
<<
#ifdef _OMC_MEASURE_TIME
<%\n%>#ifdef _OMC_MEASURE_TIME
SIM_PROF_ACC_FN(<%funName%>_index);
#endif<%\n%>
>>
Expand Down

0 comments on commit 853b481

Please sign in to comment.