Files
svc.ems/plat/public_bak/src/include/pub_debug.h
2024-09-27 15:39:34 +08:00

44 lines
926 B
C

//////////////////////////////////////////////////
//Title : pub_debug.h
//Auhtor : Liu Wei
//Desc : public debug api header
//Created : 2007-05-01
//Revision :
//
//Revision :
//
//////////////////////////////////////////////////
#ifndef _PUB_DEBUG_H_
#define _PUB_DEBUG_H_
#include "stdio.h"
#include "assert.h"
#include "string.h"
#include "stdlib.h"
#include <execinfo.h>
#include <signal.h>
extern void WxcDump(int nSigno);
extern void WxcBackTrace();
#ifdef DEBUG
#define WxcAssert(Expression,pStr) \
{ \
int nVal = (Expression); \
if(!nVal) \
{ \
WxcBackTrace(); \
} \
assert( nVal && pStr ); \
}
#else
#define WxcAssert(uVal,pStr)
#endif
#endif