Skip to content

Commit

Permalink
Support bootstrapping when using array literals
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#1929
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Oct 20, 2017
1 parent 09c37cd commit 3532b10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SimulationRuntime/c/meta/meta_modelica_builtin.c
Expand Up @@ -591,6 +591,11 @@ modelica_metatype listArray(modelica_metatype lst)
return arr;
}

modelica_metatype listArrayLiteral(modelica_metatype lst)
{
return listArray(lst);
}

modelica_metatype arrayCopy(modelica_metatype arr)
{
int nelts = MMC_HDRSLOTS(MMC_GETHDR(arr));
Expand Down
1 change: 1 addition & 0 deletions SimulationRuntime/c/meta/meta_modelica_builtin.h
Expand Up @@ -131,6 +131,7 @@ extern modelica_metatype arrayList(modelica_metatype);
extern modelica_metatype listArray(modelica_metatype);
extern modelica_metatype arrayCopy(modelica_metatype);
#define arrayGet(X,Y) nobox_arrayGet(threadData,X,Y)
extern modelica_metatype listArrayLiteral(modelica_metatype);

static inline modelica_metatype nobox_arrayGet(threadData_t *threadData,modelica_metatype arr,modelica_integer ix)
{
Expand Down

0 comments on commit 3532b10

Please sign in to comment.