Skip to content

Commit

Permalink
- Add template error if vector() calls remain
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9694 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 26, 2011
1 parent 00ef3d8 commit ca0858f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/susan_codegen/SimCode/SimCodeC.tpl
Expand Up @@ -5172,6 +5172,9 @@ template daeExpCall(Exp call, Context context, Text &preExp /*BUFP*/,
let &preExp += 'fill_alloc_<%ty_str%>(&<%tvar%>, <%valExp%>, <%listLength(dims)%>, <%dimsExp%>);<%\n%>'
'<%tvar%>'

case call as CALL(path=IDENT(name="vector")) then
error(sourceInfo(),'vector() call does not have a C implementation <%printExpStr(call)%>')

case CALL(path=IDENT(name="cat"), expLst=dim::arrays, attr=CALL_ATTR(ty = ty)) then
let dim_exp = daeExp(dim, context, &preExp /*BUFC*/, &varDecls /*BUFD*/)
let arrays_exp = (arrays |> array =>
Expand Down

0 comments on commit ca0858f

Please sign in to comment.