-
Notifications
You must be signed in to change notification settings - Fork 43
Description
The specification is not very clear when it comes to passing record arrays over the external function interface. The way I read https://specification.modelica.org/master/functions.html#arrays-1 is that at least the mapping of the record type itself is described in https://specification.modelica.org/master/functions.html#records. However,
Records are passed by reference (i.e., a pointer to the record is being passed).
leaves some room for interpretation, especially considering that members of record type are not stored as pointers.
So, if struct ext_C_R
is the C mapping of some record type, is the external function receiving an array of such records supposed to be called with (a pointer to) an array of ext_C_R*
or (a pointer to) an array of ext_C_R
?