642 views
in GUI Development by
How to pass an array to native C code?

1 Answer

0 votes
by
It is not possible to pass an array to native code!

Chora is a save and stable programming language that does not allow the exchange of data pointers. Since the size of a Chora-array is unknown in the native C-code, this interaction would cover a high risk for programming errors. Therefore Embedded Wizard does not offer any data exchange by addresses or pointers like for an array. It is recommended to pass the value with an index to the native code. By this method the Chora compiler can check the array access to be in a valid range.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...