Closed DatanoiseTV closed 1 year ago
The code generated by the compiler is C++. If you want to call if from C it is necessary to make wrappers for the C++ functions. Take a look at https://isocpp.org/wiki/faq/mixing-c-and-cpp#call-cpp
Basically, you need to create an extern "C"
function that takes a pointer and calls the corresponding C++ function passing the reference.
I dropped the support for pure C code because it is easier to generate C++.
At this point, the vultc generates a mix of C and C++. C doesn't support references, therefore on my platform (RP2040) the compiler complains: