openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
eerror.h File Reference
#include <string>
#include <map>
#include <new>
#include <libsig_comp.h>

Go to the source code of this file.

Macros

#define NULL   0
 
#define CHECKFORMAT   __attribute__ ((__format__(__printf__, 2, 3)))
 
#define DEFAULT_DEBUG_LVL   4
 
#define MAX_DEBUG_LEVEL   0
 
#define eDebugLow(lvl, flags, ...)
 
#define _DBGFLG_NONEWLINE   1
 
#define _DBGFLG_NOTIME   2
 
#define _DBGFLG_FATAL   4
 
#define eFatal(...)   eDebugLow(lvlFatal, _DBGFLG_FATAL, __VA_ARGS__)
 
#define eLog(lvl, ...)   eDebugLow(lvl, 0, ##__VA_ARGS__)
 
#define eLogNoNewLineStart(lvl, ...)   eDebugLow(lvl, _DBGFLG_NONEWLINE, ##__VA_ARGS__)
 
#define eLogNoNewLine(lvl, ...)   eDebugLow(lvl, _DBGFLG_NOTIME | _DBGFLG_NONEWLINE, ##__VA_ARGS__)
 
#define eWarning(...)   eDebugLow(lvlWarning, 0, __VA_ARGS__)
 
#define eDebug(...)   eDebugLow(lvlDebug, 0, __VA_ARGS__)
 
#define eDebugNoNewLineStart(...)   eDebugLow(lvlDebug, _DBGFLG_NONEWLINE, __VA_ARGS__)
 
#define eDebugNoNewLine(...)   eDebugLow(lvlDebug, _DBGFLG_NOTIME | _DBGFLG_NONEWLINE, __VA_ARGS__)
 
#define eTrace(...)   eDebugLow(lvlTrace, 0, ##__VA_ARGS__)
 
#define eTraceNoNewLineStart(...)   eDebugLow(lvlTrace, _DBGFLG_NONEWLINE, ##__VA_ARGS__)
 
#define eTraceNoNewLine(...)   eDebugLow(lvlTrace, _DBGFLG_NOTIME | _DBGFLG_NONEWLINE, ##__VA_ARGS__)
 
#define ASSERT(x)   { if (!(x)) eFatal("%s:%d ASSERTION %s FAILED!", __FILE__, __LINE__, #x); }
 

Enumerations

enum  {
  lvlTrace =5 , lvlDebug =4 , lvlInfo =3 , lvlWarning =2 ,
  lvlError =1 , lvlFatal =0
}
 

Functions

void CHECKFORMAT eDebugImpl (int flags, const char *,...)
 
void ePythonOutput (const char *, int lvl=lvlDebug)
 
int eGetEnigmaDebugLvl ()
 

Variables

int debugLvl
 

Macro Definition Documentation

◆ _DBGFLG_FATAL

#define _DBGFLG_FATAL   4

◆ _DBGFLG_NONEWLINE

#define _DBGFLG_NONEWLINE   1

◆ _DBGFLG_NOTIME

#define _DBGFLG_NOTIME   2

◆ ASSERT

#define ASSERT (   x)    { if (!(x)) eFatal("%s:%d ASSERTION %s FAILED!", __FILE__, __LINE__, #x); }

◆ CHECKFORMAT

#define CHECKFORMAT   __attribute__ ((__format__(__printf__, 2, 3)))

◆ DEFAULT_DEBUG_LVL

#define DEFAULT_DEBUG_LVL   4

◆ eDebug

#define eDebug (   ...)    eDebugLow(lvlDebug, 0, __VA_ARGS__)

◆ eDebugLow

#define eDebugLow (   lvl,
  flags,
  ... 
)
Value:
do { \
if (((lvl) <= MAX_DEBUG_LEVEL) && ((lvl) <= debugLvl)) \
eDebugImpl((flags), __VA_ARGS__); \
} while (0)
#define MAX_DEBUG_LEVEL
Definition: eerror.h:125
int debugLvl
Definition: eerror.cpp:79

◆ eDebugNoNewLine

#define eDebugNoNewLine (   ...)    eDebugLow(lvlDebug, _DBGFLG_NOTIME | _DBGFLG_NONEWLINE, __VA_ARGS__)

◆ eDebugNoNewLineStart

#define eDebugNoNewLineStart (   ...)    eDebugLow(lvlDebug, _DBGFLG_NONEWLINE, __VA_ARGS__)

◆ eFatal

#define eFatal (   ...)    eDebugLow(lvlFatal, _DBGFLG_FATAL, __VA_ARGS__)

◆ eLog

#define eLog (   lvl,
  ... 
)    eDebugLow(lvl, 0, ##__VA_ARGS__)

◆ eLogNoNewLine

#define eLogNoNewLine (   lvl,
  ... 
)    eDebugLow(lvl, _DBGFLG_NOTIME | _DBGFLG_NONEWLINE, ##__VA_ARGS__)

◆ eLogNoNewLineStart

#define eLogNoNewLineStart (   lvl,
  ... 
)    eDebugLow(lvl, _DBGFLG_NONEWLINE, ##__VA_ARGS__)

◆ eTrace

#define eTrace (   ...)    eDebugLow(lvlTrace, 0, ##__VA_ARGS__)

◆ eTraceNoNewLine

#define eTraceNoNewLine (   ...)    eDebugLow(lvlTrace, _DBGFLG_NOTIME | _DBGFLG_NONEWLINE, ##__VA_ARGS__)

◆ eTraceNoNewLineStart

#define eTraceNoNewLineStart (   ...)    eDebugLow(lvlTrace, _DBGFLG_NONEWLINE, ##__VA_ARGS__)

◆ eWarning

#define eWarning (   ...)    eDebugLow(lvlWarning, 0, __VA_ARGS__)

◆ MAX_DEBUG_LEVEL

#define MAX_DEBUG_LEVEL   0

◆ NULL

#define NULL   0

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
lvlTrace 
lvlDebug 
lvlInfo 
lvlWarning 
lvlError 
lvlFatal 

Function Documentation

◆ eDebugImpl()

void CHECKFORMAT eDebugImpl ( int  flags,
const char *  fmt,
  ... 
)

◆ eGetEnigmaDebugLvl()

int eGetEnigmaDebugLvl ( )

◆ ePythonOutput()

void ePythonOutput ( const char *  string,
int  lvl = lvlDebug 
)

Variable Documentation

◆ debugLvl

int debugLvl
extern