Hello to all,
I would like to know if we can define a sub-routine to be nul, so that when compiling this routine hold no is what a macro do, but macros aren't implemented yet in FPC.
This could be used, for example, in a C-like "assert" function that when NDEBUG is defined the function is inserted, and when it isn't the function waste no space. I include a DJGPP version of the function prototype. In other words; this is equivalent to the lines below, but is easier to write, and looks much better in your source:
{$IFDEF NDEBUG}
Assert(blabla);{$ENDIF}
Best Regards,
IoDream.
