From 6267c32524bc76488a14c5b71e0e8eededce31db Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 13 Sep 2013 12:59:08 +0800 Subject: [PATCH] Kernel - Added assert() macro (same as ASSERT) --- KernelLand/Kernel/include/logdebug.h | 1 + KernelLand/Modules/Network/PCnetFAST3/pcnet-fast3.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/KernelLand/Kernel/include/logdebug.h b/KernelLand/Kernel/include/logdebug.h index c5337439..63c676a3 100644 --- a/KernelLand/Kernel/include/logdebug.h +++ b/KernelLand/Kernel/include/logdebug.h @@ -64,6 +64,7 @@ extern void Debug_HexDump(const char *Header, const void *Data, size_t Length); # define ASSERTV(expr) # define ASSERTRV(expr) #endif +#define assert(expr) ASSERTV(expr, "") #define ASSERT(expr) ASSERTV(expr, "") #define ASSERTR(expr,rv) ASSERTRV(expr, rv, "") #define ASSERTC(l,rel,r) ASSERTV(l rel r, ": %i"#rel"%i", l, r) diff --git a/KernelLand/Modules/Network/PCnetFAST3/pcnet-fast3.c b/KernelLand/Modules/Network/PCnetFAST3/pcnet-fast3.c index 7105b02f..e777e606 100644 --- a/KernelLand/Modules/Network/PCnetFAST3/pcnet-fast3.c +++ b/KernelLand/Modules/Network/PCnetFAST3/pcnet-fast3.c @@ -11,8 +11,6 @@ #include #include "hw.h" -#define assert ASSERT // because CBF updating code - // === CONSTANTS === #define VENDOR_ID 0x1022 #define DEVICE_ID 0x2000 -- 2.20.1