windows-nt/Source/XPSP1/NT/multimedia/media/midimap/wassert.h
2020-09-26 16:20:57 +08:00

50 lines
480 B
C

// 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