Use ASSERT() instead of assert().

svn path=/trunk/; revision=11542
This commit is contained in:
Eric Kohl 2004-11-05 12:28:19 +00:00
parent 2d115eb645
commit 8ee82ee7cc
4 changed files with 10 additions and 11 deletions

View file

@ -6,17 +6,17 @@
#ifdef NDEBUG
#define DPRINT(args...)
#define CHECKPOINT
#ifdef assert
#undef assert
#ifdef ASSERT
#undef ASSERT
#endif
#define assert(x)
#define ASSERT(x)
#else
#define DPRINT(args...) do { DbgPrint("(KERNEL32:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
#define CHECKPOINT do { DbgPrint("(KERNEL32:%s:%d) Checkpoint\n",__FILE__,__LINE__); } while(0);
#ifdef assert
#undef assert
#ifdef ASSERT
#undef ASSERT
#endif
#define assert(x) do { if(!x) RtlAssert("#x", __FILE__,__LINE__, ""); } while(0);
#define ASSERT(x) do { if(!x) RtlAssert("#x", __FILE__,__LINE__, ""); } while(0);
#endif
#define DPRINT1(args...) do { DbgPrint("(KERNEL32:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);

View file

@ -8,7 +8,6 @@
#include <limits.h>
#include <wchar.h>
#include <string.h>
#include <assert.h>
#include <ddk/ntddk.h>
#include <ddk/ntddbeep.h>
#include <ddk/ntddser.h>

View file

@ -1,4 +1,4 @@
/* $Id: proc.c,v 1.71 2004/11/02 21:51:25 weiden Exp $
/* $Id: proc.c,v 1.72 2004/11/05 12:26:55 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -635,7 +635,7 @@ ExitProcess(UINT uExitCode)
uExitCode);
/* should never get here */
assert(0);
ASSERT(0);
while(1);
}

View file

@ -1,4 +1,4 @@
/* $Id: fiber.c,v 1.12 2004/10/24 20:37:26 weiden Exp $
/* $Id: fiber.c,v 1.13 2004/11/05 12:26:36 ekohl Exp $
*
* FILE: lib/kernel32/thread/fiber.c
*
@ -246,7 +246,7 @@ l_CleanupFiber:
RtlFreeHeap(pTeb->Peb->ProcessHeap, 0, pfCurFiber);
/* failure */
assert(!NT_SUCCESS(nErrCode));
ASSERT(!NT_SUCCESS(nErrCode));
SetLastErrorByStatus(nErrCode);
return NULL;
}