3 * This file has no copyright assigned and is placed in the Public Domain.
4 * This file is a part of the mingw-runtime package.
5 * No warranty is given; refer to the file DISCLAIMER within the package.
7 * Define the assert macro for debug output.
11 /* We should be able to include this file multiple times to allow the assert
12 macro to be enabled/disabled for different parts of code. So don't add a
17 /* All the headers include this file. */
28 * If not debugging, assert does nothing.
30 #define assert(x) ((void)0)
32 #else /* debugging enabled */
35 * CRTDLL nicely supplies a function which does the actual output and
38 _CRTIMP
void __cdecl __MINGW_NOTHROW
_assert (const char*, const char*, int) __MINGW_ATTRIB_NORETURN
;
41 * Definition of the assert macro.
43 #define assert(e) ((e) ? (void)0 : _assert(#e, __FILE__, __LINE__))
51 #endif /* Not RC_INVOKED */