When using the MathLink C interface, if we want to get arguments manually, we need to put the following in the template file:
:ArgumentTypes: { Manual }
:ReturnType: Manual
I accidentally used
:ArgumentTypes: Manual
:ReturnType: Manual
instead.
mprep does 'compile' this template file without errors, and generates valid C code for it, but it doesn't have the same behaviour as the standard :ArgumentTypes: {Manual} specification.
Diffing the outputs shows only one difference: the f_nargs member of the "func" struct is set to -1 for this function with :ArgumentTypes: Manual, while with {Manual} it is 0.
Question: Is :ArgumentTypes: Manual meaningful, and if yes, what is its use?