X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=acconfig.h;h=590cc87cc0d5bcbfed99456fadc1eddc0bbbafb6;hp=9bbd4bb9506143bc4debfc6135feb498e5409e8a;hb=07e8833740d5c2268df6000ef3856bb05bf0dc67;hpb=81b1712d54efa46b3148a5beb42d32d7632ef30c diff --git a/acconfig.h b/acconfig.h index 9bbd4bb..590cc87 100644 --- a/acconfig.h +++ b/acconfig.h @@ -80,13 +80,15 @@ #include "uccompat.h" #ifdef STACKCHECK -extern void live_check(const char *file,int line); +extern void live_check(const char *file,int line,int alloc); extern void live_disable(int how); -#define LIVE live_check(__FILE__,__LINE__) +#define LIVE live_check(__FILE__,__LINE__,-1) +#define LIVE_ALLOC(n) live_check(__FILE__,__LINE__,(n)) #define LIVE_DISABLE live_disable(1) #define LIVE_ENABLE live_disable(-1) #else /* STACKCHECK */ #define LIVE +#define LIVE_ALLOC(n) #define LIVE_DISABLE #define LIVE_ENABLE #endif /* STACKCHECK */