MythTV  master
Macros | Functions | Variables
Logging.h File Reference
#include <QtGlobal>
#include <QString>
#include "freemheg.h"
Include dependency graph for Logging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MHASSERT(f)   Q_ASSERT(f)
 
#define MHLOG(__level, __text)
 
#define MHERROR(__text)
 

Functions

void mhlog_fn (const QString &logtext)
 

Variables

int gMHLogoptions
 
FILE * gMHLogStream
 

Macro Definition Documentation

◆ MHASSERT

#define MHASSERT (   f)    Q_ASSERT(f)

Definition at line 30 of file Logging.h.

◆ MHLOG

#define MHLOG (   __level,
  __text 
)
Value:
do { \
if ((__level) & gMHLogoptions) \
mhlog_fn(__text); \
} while (false)

Definition at line 36 of file Logging.h.

◆ MHERROR

#define MHERROR (   __text)
Value:
do { \
mhlog_fn(__text); \
throw "Failed"; \
} while (false)

Definition at line 42 of file Logging.h.

Function Documentation

◆ mhlog_fn()

void mhlog_fn ( const QString &  logtext)

Definition at line 1485 of file Engine.cpp.

Variable Documentation

◆ gMHLogoptions

int gMHLogoptions

◆ gMHLogStream

FILE* gMHLogStream
MHLogError
@ MHLogError
Definition: freemheg.h:71
gMHLogoptions
int gMHLogoptions
Definition: Engine.cpp:1480