MatD - Matlab external interface bindings for D
Trass3r
un at known.com
Mon Aug 23 14:30:52 PDT 2010
> 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)
More information about the Digitalmars-d-announce
mailing list