Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
480 B

// Copyright (c) 1995 Microsoft Corporation
/*
* Define the assert() macro for windows apps.
*
* The macro will only be expanded to a function call if DEBUG is
* defined.
*
*/
#undef assert
#ifndef DEBUG
#define assert(exp) ((void)0)
#else
void FAR PASCAL WinAssert
(
LPSTR lpstrModule,
LPSTR lpstrFile,
DWORD dwLine
);
#define assert(exp) \
( (exp) ? (void) 0 : WinAssert(#exp, __FILE__, __LINE__) )
#endif