📄 solarassert.h
字号:
//=======================================================================================================================
/// 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 <windows.h>
#include <windowsx.h>
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__ ) ) \
{ \
__asm int 3 \
} \
if( !bIgnoreToAssertBox ) \
{ \
if( IDNO == _ignoreMessageBox() ) \
{ \
bDontAskAgain = false; \
} \
} \
} \
}
*/
#define SASSERT( exp, desc ) __noop
#define DASSERT( exp, desc ) \
{ \
if( !(exp) ) \
{ \
OutputDebugString( desc ); \
} \
}
#endif // __SOLAR_ASSERT_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -