[Harbour] Debugging c code

Xavi jarabal at gmail.com
Mon Feb 1 08:38:01 EST 2010


Hi April,

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

Best regards,
Xavi

El 01/02/2010 4:00, April White escribió:
> When my C level code does not release memory, the fm statistics reports
> this but gives the public function though in some cases the allocation
> occured in a sub-function.
>
> 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.
>
> April
>


More information about the Harbour mailing list