From 4bbc8ea6efc6a3ff04814b8d96e5454ce27fd87c Mon Sep 17 00:00:00 2001 From: Rex Jolliff Date: Tue, 15 Sep 1998 14:18:47 +0000 Subject: [PATCH] added pool validation to checkpoint/dprint macro svn path=/trunk/; revision=44 --- reactos/include/internal/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/include/internal/debug.h b/reactos/include/internal/debug.h index f52773283ff..00183c28b36 100644 --- a/reactos/include/internal/debug.h +++ b/reactos/include/internal/debug.h @@ -26,10 +26,10 @@ #define UNIMPLEMENTED do {DbgPrint("%s at %s:%d is umimplemented, have a nice day\n",__FUNCTION__,__FILE__,__LINE__); for(;;); } while(0); #ifndef NDEBUG -#define DPRINT(fmt,args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(fmt,args); } while(0); +#define DPRINT(fmt,args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(fmt,args); ExAllocatePool(NonPagedPool, 0); } while(0); //#define assert(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); (*((unsigned int *)0))=1; for (;;); } #define assert(x) if (!(x)) {DbgPrint("Assertion "#x" failed at %s:%d\n", __FILE__,__LINE__); for (;;); } -#define CHECKPOINT DbgPrint("%s:%d\n",__FILE__,__LINE__) +#define CHECKPOINT do {DbgPrint("%s:%d\n",__FILE__,__LINE__); ExAllocatePool(NonPagedPool, 0); } while(0); #else #define DPRINT(fmt,args...) #define assert(x)