LMMS
Loading...
Searching...
No Matches
fdebug.h File Reference
#include "pluginterfaces/base/ftypes.h"
#include <cstring>

Go to the source code of this file.

Macros

#define SMTG_ASSERT(f)
#define SMTG_WARNING(s)
#define SMTG_PRINTSYSERROR
#define SMTG_DEBUGSTR(s)
#define SMTG_VERIFY(f)
#define SMTG_VERIFY_IS(f, r)
#define SMTG_VERIFY_NOT(f, r)
#define SMTG_DBPRT0(a)
#define SMTG_DBPRT1(a, b)
#define SMTG_DBPRT2(a, b, c)
#define SMTG_DBPRT3(a, b, c, d)
#define SMTG_DBPRT4(a, b, c, d, e)
#define SMTG_DBPRT5(a, b, c, d, e, f)
#define NEW   new
#define NEWVEC   new
#define ASSERT   SMTG_ASSERT
#define WARNING   SMTG_WARNING
#define DEBUGSTR   SMTG_DEBUGSTR
#define VERIFY   SMTG_VERIFY
#define VERIFY_IS   SMTG_VERIFY_IS
#define VERIFY_NOT   SMTG_VERIFY_NOT
#define PRINTSYSERROR   SMTG_PRINTSYSERROR
#define DBPRT0   SMTG_DBPRT0
#define DBPRT1   SMTG_DBPRT1
#define DBPRT2   SMTG_DBPRT2
#define DBPRT3   SMTG_DBPRT3
#define DBPRT4   SMTG_DBPRT4
#define DBPRT5   SMTG_DBPRT5

Functions

bool AmIBeingDebugged ()
bool isSmtgUnitTesting ()
void setSmtgUnitTesting ()

Detailed Description

Debugging tools.

There are 2 levels of debugging messages:

  • DEVELOPMENT
    • During development
  • RELEASE
    • Program is shipping.

Macro Definition Documentation

◆ ASSERT

#define ASSERT   SMTG_ASSERT

◆ DBPRT0

#define DBPRT0   SMTG_DBPRT0

◆ DBPRT1

#define DBPRT1   SMTG_DBPRT1

◆ DBPRT2

#define DBPRT2   SMTG_DBPRT2

◆ DBPRT3

#define DBPRT3   SMTG_DBPRT3

◆ DBPRT4

#define DBPRT4   SMTG_DBPRT4

◆ DBPRT5

#define DBPRT5   SMTG_DBPRT5

◆ DEBUGSTR

#define DEBUGSTR   SMTG_DEBUGSTR

◆ NEW

#define NEW   new

◆ NEWVEC

#define NEWVEC   new

◆ PRINTSYSERROR

#define PRINTSYSERROR   SMTG_PRINTSYSERROR

◆ SMTG_ASSERT

#define SMTG_ASSERT ( f)

if DEVELOPMENT is not set, these macros will do nothing.

◆ SMTG_DBPRT0

#define SMTG_DBPRT0 ( a)

◆ SMTG_DBPRT1

#define SMTG_DBPRT1 ( a,
b )

◆ SMTG_DBPRT2

#define SMTG_DBPRT2 ( a,
b,
c )

◆ SMTG_DBPRT3

#define SMTG_DBPRT3 ( a,
b,
c,
d )

◆ SMTG_DBPRT4

#define SMTG_DBPRT4 ( a,
b,
c,
d,
e )

◆ SMTG_DBPRT5

#define SMTG_DBPRT5 ( a,
b,
c,
d,
e,
f )

◆ SMTG_DEBUGSTR

#define SMTG_DEBUGSTR ( s)

◆ SMTG_PRINTSYSERROR

#define SMTG_PRINTSYSERROR

◆ SMTG_VERIFY

#define SMTG_VERIFY ( f)
Value:
f;
unsigned f
Definition inflate.c:1572

◆ SMTG_VERIFY_IS

#define SMTG_VERIFY_IS ( f,
r )
Value:
f;

◆ SMTG_VERIFY_NOT

#define SMTG_VERIFY_NOT ( f,
r )
Value:
f;

◆ SMTG_WARNING

#define SMTG_WARNING ( s)

◆ VERIFY

#define VERIFY   SMTG_VERIFY

◆ VERIFY_IS

#define VERIFY_IS   SMTG_VERIFY_IS

◆ VERIFY_NOT

#define VERIFY_NOT   SMTG_VERIFY_NOT

◆ WARNING

#define WARNING   SMTG_WARNING

Function Documentation

◆ AmIBeingDebugged()

bool AmIBeingDebugged ( )

Returns true if a debugger is attached.

◆ isSmtgUnitTesting()

bool isSmtgUnitTesting ( )

◆ setSmtgUnitTesting()

void setSmtgUnitTesting ( )