DSMCC  17.9.0
 All Data Structures Files Functions Typedefs
Macros | Functions | Variables
dsmDbg.h File Reference

Internal Platform dependent definitions, for debug. More...

#include "cldsmdbg.h"
#include <assert.h>

Go to the source code of this file.

Macros

#define dsmAssert(assertion)   assert assertion
 
#define ASSERT(condition)   assert(condition);
 
#define DSM_DP_LEVEL   (1) /* -- default */
 
#define dsmDP1(x)   if (DBG_ErrorPrintfFunc) DBG_ErrorPrintfFunc x
 
#define ERRPRINT(x,...)   if (DBG_ErrorPrintfFunc) DBG_ErrorPrintfFunc("%s:%d ERROR: " x "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__);
 
#define DBG1(f, x,...)   if (DBG_ErrorPrintfFunc && (f & dsmDbgState)) DBG_ErrorPrintfFunc("%s:%d " x "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__);
 
#define ERRLOG(f, x,...)   if (DBG_ErrorPrintfFunc) DBG_ErrorPrintfFunc("%s:%d " x "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__);
 
#define DBGLOG(f, x,...)   if (DBG_ErrorPrintfFunc && (f & idp->dbgMask)) DBG_ErrorPrintfFunc("%s:%d " x "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__);
 
#define DBGERRCHK(err)   if (err) { ERRPRINT("err=%d",err) }
 
#define dsmDP2(x)
 
#define DBG2(f, x,...)
 
#define dsmDP3(x)
 
#define DBG3(f, x,...)
 
#define dsmDP4(x)
 
#define DBG4(f, x,...)
 

Functions

void STB_SPDumpWrite (U8BIT *data, U32BIT size)
 

Variables

F_Printf DBG_ErrorPrintfFunc
 
F_Printf DBG_WarnPrintfFunc
 
F_Printf DBG_DebugPrintfFunc
 
F_Printf DBG_InfoPrintffunc
 
U32BIT dsmDbgState
 

Detailed Description

Internal Platform dependent definitions, for debug.

Date
01/12/2004
Author
Ocean Blue

Definition in file dsmDbg.h.