Skip to content

Commit

Permalink
- Added support for variables with quotes in the name
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8574 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 10, 2011
1 parent e5391b2 commit 0473f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/susan_codegen/SimCode/SimCodeC.tpl
Expand Up @@ -363,7 +363,7 @@ template globalDataVarInfoArray(String _name, list<SimVar> items)
case items then
<<
const struct omc_varInfo <%_name%>[<%listLength(items)%>] = {
<%items |> var as SIMVAR(info=info as INFO(__)) => '{<%System.tmpTick()%>,"<%crefStr(var.name)%>","<%var.comment%>",{<%infoArgs(info)%>}}'; separator=",\n"%>
<%items |> var as SIMVAR(info=info as INFO(__)) => '{<%System.tmpTick()%>,"<%escapedString(crefStr(var.name))%>","<%escapedString(var.comment)%>",{<%infoArgs(info)%>}}'; separator=",\n"%>
};
<%items |> var as SIMVAR(info=info as INFO(__)) hasindex i0 => '#define <%cref(var.name)%>__varInfo <%_name%>[<%i0%>]'; separator="\n"%>
>>
Expand Down

0 comments on commit 0473f21

Please sign in to comment.