[Harbour] Debugging c code
Viktor Szakáts
harbour.01 at syenar.hu
Mon Feb 1 08:45:23 EST 2010
Hi,
> HB_TRACEFM(), with my next commit. I'm waiting for Przemek and others are ready. ;)
>
>> Is there a macro I can use to identify this sub-function? I could leave
>> it in the code wrapped conditional code for debug only.
>
> Yes if you have a C99 compiler, just have to redefine the macro in your code .-
>
> #ifdef HB_TRACEFM
> # undef HB_TRACEFM
> # define HB_TRACEFM( x ) hb_fm_xInfoEx( #x, __FILE__, __LINE__, __func__ ); x
> #endif
Sorry, I still don't like it in its current form,
pls could post the complete patch for review if possible.
Brgds,
Viktor
More information about the Harbour
mailing list