This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using C++ function pointers with DSP/BIOS

Hi

This is probably a stupid question to which I should now the answer (but hopefully that makes it all the more easy to answer). 

It is valid to use pointers to C++ functions (including pointers to static C++ class methods) when registering function pointers with DSP/BIOS library functions or is it a requirement to only use pointers to C functions or pointers to C++ functions prefixed with the extern "C" directive? 

I understand why it is necessary to use C-callable functions when registering functions in a *.tcf file (due to C++ name mangling) but am unsure whether this restriction applies when registering functions at runtime, eg, when using TSK_create() or ECM_dispatchPlug().  Put another way, is it safe to simply use a C-style cast, eg, using "(Fxn) myTaskFunction" when myTaskFunction(...) is a C++ function (without extern "C" directive)?

Many thanks in advance.

Tim