Skip to content

Commit

Permalink
- Do not make the arrayLength function static inline.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22241 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Sep 10, 2014
1 parent 2e7480a commit 364e40a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions SimulationRuntime/c/meta/meta_modelica_builtin.c
Expand Up @@ -576,6 +576,11 @@ modelica_metatype arrayCreate(modelica_integer nelts, modelica_metatype val)
}
}

modelica_integer arrayLength(modelica_metatype arr)
{
return MMC_HDRSLOTS(MMC_GETHDR(arr));
}

modelica_metatype arrayList(modelica_metatype arr)
{
modelica_metatype result;
Expand Down
7 changes: 2 additions & 5 deletions SimulationRuntime/c/meta/meta_modelica_builtin.h
Expand Up @@ -108,11 +108,8 @@ extern modelica_metatype boxptr_listDelete(threadData_t*,modelica_metatype,model
#define optionNone(x) (0==MMC_HDRSLOTS(MMC_GETHDR(x)) ? 1 : 0)

/* Array Operations */
static inline modelica_integer arrayLength(modelica_metatype arr)
{
return MMC_HDRSLOTS(MMC_GETHDR(arr));
}

/* Do not define this function static inline. It is needed by the debugger. */
extern modelica_integer arrayLength(modelica_metatype arr);
extern modelica_metatype arrayList(modelica_metatype);
extern modelica_metatype listArray(modelica_metatype);
extern modelica_metatype arrayCopy(modelica_metatype);
Expand Down

0 comments on commit 364e40a

Please sign in to comment.