//======================================================================================================================= /// Solar Assert /** @author Kim Min Wook < taiyo@webzen.co.kr > @since 2005. 4. 11 @remarks - Ä¿½ºÅÒÇÑ Assert â @todo - ÄÄÆÄÀÏ Å¸ÀÓ°ú ·±Å¸ÀÓ¿ëÀ¸·Î ³ª´®~! - ÆÄÀÏ¿¡ ±â·ÏÇϰųª, OutputDebugString()À¸·Î Ãâ·ÂÇÏ´Â ºÎºÐ Ãß°¡ - °¡º¯ÀÎÀÚ Ã³¸® */ //======================================================================================================================= #ifndef __SOLAR_ASSERT_H__ #define __SOLAR_ASSERT_H__ #include #include extern char * VSTR( char * s, ...); extern int _solarAssertBox( const char * pszDesc, int line, char * file, char * date, char * time ); extern int _ignoreMessageBox(); /* #define SASSERT( exp, desc ) \ { \ static bool bIgnoreToAssertBox = false; \ static bool bDontAskAgain = true; \ if( exp==0 && bDontAskAgain ) \ { \ if( 2 == _solarAssertBox( desc, __LINE__, __FILE__, __DATE__, __TIME__ ) ) \ { \ __debugbreak(); \ } \ if( !bIgnoreToAssertBox ) \ { \ if( IDNO == _ignoreMessageBox() ) \ { \ bDontAskAgain = false; \ } \ } \ } \ } */ #define SASSERT( exp, desc ) __noop #define DASSERT( exp, desc ) \ { \ if( !(exp) ) \ { \ OutputDebugString( desc ); \ } \ } #endif // __SOLAR_ASSERT_H__