Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenassert.h
Go to the documentation of this file.
00001 00006 #ifndef __ASSERT_H_ 00007 #define __ASSERT_H_ 00008 00009 #include <crtdefs.h> 00010 00011 #ifdef NDEBUG 00012 00013 #ifndef assert 00014 #define assert(_Expression) ((void)0) 00015 #endif 00016 00017 #else /* !NDEBUG */ 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 _CRTIMP void __cdecl _assert(const char *_Message,const char *_File,unsigned _Line); 00024 _CRTIMP void __cdecl _wassert(const wchar_t *_Message,const wchar_t *_File,unsigned _Line); 00025 00026 #ifdef __cplusplus 00027 } 00028 #endif 00029 00030 #ifndef assert 00031 #define assert(_Expression) (void)((!!(_Expression)) || (_assert(#_Expression,__FILE__,__LINE__),0)) 00032 #endif 00033 00034 #ifndef wassert 00035 #define wassert(_Expression) (void)((!!(_Expression)) || (_wassert(_CRT_WIDE(#_Expression),_CRT_WIDE(__FILE__),__LINE__),0)) 00036 #endif 00037 00038 #endif 00039 00040 #endif Generated on Sun May 27 2012 04:28:46 for ReactOS by
1.7.6.1
|