示例#1
0
VOID __assertspecial__ ( const CHAR * file , UINT line , const CHAR * func , const CHAR * expr ,const CHAR* msg)
{
	CHAR szTemp[1024] = {0};

	sprintf( szTemp, "S[%s][%d][%s][%s]\n[%s]", file, line, func, expr ,msg ) ;

	__show__(szTemp) ;
}
示例#2
0
//--------------------------------------------------------------------------------
//
// __assert__
//
//
//--------------------------------------------------------------------------------
VOID __assert__ ( const CHAR * file , UINT line , const CHAR * func , const CHAR * expr )
{
	CHAR szTemp[1024] = {0};

	sprintf( szTemp, "[%s][%d][%s][%s]", file, line, func, expr ) ;

	__show__(szTemp) ;
}
示例#3
0
VOID __assertspecial__(const CHAR * file, UINT line, const CHAR * func, const CHAR * expr, const CHAR* msg)
{
	CHAR szTemp[1024] = { 0 };

#ifdef __LINUX__
	sprintf(szTemp, "S[%s][%d][%s][%s]\n[%s]\n", file, line, func, expr, msg);
#else
	sprintf(szTemp, "S[%s][%d][%s][%s]\n[%s]", file, line, func, expr, msg);
#endif
	__show__(szTemp);
}
示例#4
0
//--------------------------------------------------------------------------------
//
// __assert__
//
//
//--------------------------------------------------------------------------------
VOID __assert__(const CHAR * file, UINT line, const CHAR * func, const CHAR * expr)
{
	CHAR szTemp[1024] = { 0 };

#ifdef __LINUX__ //换个格式
	sprintf(szTemp, "[%s][%d][%s][%s]\n", file, line, func, expr);
#else
	sprintf(szTemp, "[%s][%d][%s][%s]", file, line, func, expr);
#endif
	__show__(szTemp);
}
示例#5
0
	void	__assertex__(const char* file, uint line, const char* myFunction, const char* myException, const char* msg)
	{
		char strLog[MAX_SHOWMESSAGE_LENGTH] = {0};

#ifdef _WIN32
		tsnprintf( strLog, sizeof(strLog), "[%s][%d][%s][%s]\n[%s]", file, line, myFunction, myException ,msg ) ;
#endif

#ifdef _LINUX64
		tsnprintf( strLog, sizeof(strLog), "[%s][%d][%s][%s]\n[%s]\n", file, line, myFunction, myException ,msg ) ;
#endif
		__show__(strLog);
	}
示例#6
0
	void	__assertspecial__(const char* file, uint line, const char* myFunction, const char* myException, const char* msg, ...)
	{
		char strLog[MAX_SHOWMESSAGE_LENGTH] = {0};

		va_list argp;
		va_start(argp, msg);
		char buf[MAX_SHOWMESSAGE_LENGTH] = {0};

		int nCount = tvsnprintf(buf, MAX_SHOWMESSAGE_LENGTH, msg, argp);
		va_end(argp);

#ifdef _WIN32
		tsnprintf(strLog, sizeof(strLog), "[%s][%d][%s][%s]\n[%s]", file, line, myFunction, myException, buf);
#endif

#ifdef _LINUX64
		tsnprintf(strLog, sizeof(strLog), "[%s][%d][%s][%s]\n[%s]\n", file, line, myFunction, myException, buf);
#endif
		__show__(strLog);
	}