we are using matlab coder to generate C-code according to defined function interface, we use this to develop stand alone libraries with different functionality. Sometimes the C-functions that are generated takes a variable <function_name>StackData as first parameter, this can be detected via generated macro called typedef_<function_name>StackData. The type of this variable and the macro are specifed in a file called <function_name>_types.h. Including this file and checking if this macro exists allows us to write code which always adhere to the signature of the function. So far all is good.
Some time ago I wanted try to generate C++ code: and also when generating C++ code the functions sometimes takes the <function_name>StackData as first argument, however there are NO macro defined which allows us to detect this, hence I can not adhere to the signature of the function. This is effectively keeping us from generating C++ code, which would be more suitable as this is what the surrounding software is written in.
Is the fact that no macro is generated in C++ mode a bug? Or is there another explanation for this...
BTW, I am using R2019b.