windows-nt/Source/XPSP1/NT/multimedia/media/midimap/wassert.h

50 lines
480 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
// 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