I don't know if there is a way to handle all this without string mixins.

i.e. something along the lines of

mixin(foo("
...

/**
 * Get pointer to dimension array
 */
const(mwSize)* mxGetDimensions(const(mxArray)* pa);

...
"));

and foo replaces the function defs with func(...){return func_730(...)} via RegEx replace if MX_COMPAT_32 is not defined and so on.

(IF RegEx works at compile-time)

Reply via email to