diff options
| author | grischka <grischka> | 2017-02-08 19:53:02 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2017-02-08 19:53:02 +0100 |
| commit | e596b871a9f7c6ed93e1325f72c8fc7b00430328 (patch) | |
| tree | a6c00677d908790fde93cb32d2967876be47fb25 /win32/include/assert.h | |
| parent | 90316c7c26571ce1c55917aa98503ebba65d6d3a (diff) | |
| download | tinycc-e596b871a9f7c6ed93e1325f72c8fc7b00430328.tar.gz tinycc-e596b871a9f7c6ed93e1325f72c8fc7b00430328.tar.bz2 | |
win32: include/winapi: remove more files
Also: use _assert, older msvcrt does not have _wassert
Diffstat (limited to 'win32/include/assert.h')
| -rw-r--r-- | win32/include/assert.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/include/assert.h b/win32/include/assert.h index c1678a3..466d457 100644 --- a/win32/include/assert.h +++ b/win32/include/assert.h @@ -39,14 +39,17 @@ __CRT_INLINE __MINGW_ATTRIB_NORETURN void __cdecl _Exit(int status) extern "C" { #endif + extern void __cdecl _wassert(const wchar_t *_Message,const wchar_t *_File,unsigned _Line); +extern void __cdecl _assert(const char *, const char *, unsigned); #ifdef __cplusplus } #endif #ifndef assert -#define assert(_Expression) (void)((!!(_Expression)) || (_wassert(_CRT_WIDE(#_Expression),_CRT_WIDE(__FILE__),__LINE__),0)) +//#define assert(_Expression) (void)((!!(_Expression)) || (_wassert(_CRT_WIDE(#_Expression),_CRT_WIDE(__FILE__),__LINE__),0)) +#define assert(e) ((e) ? (void)0 : _assert(#e, __FILE__, __LINE__)) #endif #endif |
