Skip to content

Commit 3532b10

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Support bootstrapping when using array literals
Belonging to [master]: - OpenModelica/OMCompiler#1929
1 parent 09c37cd commit 3532b10

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

SimulationRuntime/c/meta/meta_modelica_builtin.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,11 @@ modelica_metatype listArray(modelica_metatype lst)
591591
return arr;
592592
}
593593

594+
modelica_metatype listArrayLiteral(modelica_metatype lst)
595+
{
596+
return listArray(lst);
597+
}
598+
594599
modelica_metatype arrayCopy(modelica_metatype arr)
595600
{
596601
int nelts = MMC_HDRSLOTS(MMC_GETHDR(arr));

SimulationRuntime/c/meta/meta_modelica_builtin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ extern modelica_metatype arrayList(modelica_metatype);
131131
extern modelica_metatype listArray(modelica_metatype);
132132
extern modelica_metatype arrayCopy(modelica_metatype);
133133
#define arrayGet(X,Y) nobox_arrayGet(threadData,X,Y)
134+
extern modelica_metatype listArrayLiteral(modelica_metatype);
134135

135136
static inline modelica_metatype nobox_arrayGet(threadData_t *threadData,modelica_metatype arr,modelica_integer ix)
136137
{

0 commit comments

Comments
 (0)