Base Module VST 3.7
SDK for developing VST plug-in
|
Debugging tools. More...
#include "pluginterfaces/base/ftypes.h"
#include <cstring>
Macros | |
#define | SMTG_ASSERT(f) |
if DEVELOPMENT is not set, these macros will do nothing. More... | |
#define | SMTG_ASSERT_MSG(f, msg) |
#define | SMTG_WARNING(s) |
#define | SMTG_PRINTSYSERROR |
#define | SMTG_DEBUGSTR(s) |
#define | SMTG_VERIFY(f) f; |
#define | SMTG_VERIFY_IS(f, r) f; |
#define | SMTG_VERIFY_NOT(f, r) f; |
#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 () |
Returns true if a debugger is attached. More... | |
bool | isSmtgUnitTesting () |
void | setSmtgUnitTesting () |
Debugging tools.
There are 2 levels of debugging messages:
#define SMTG_ASSERT | ( | f | ) |
if DEVELOPMENT is not set, these macros will do nothing.
#define SMTG_ASSERT_MSG | ( | f, | |
msg | |||
) |
#define SMTG_WARNING | ( | s | ) |
#define SMTG_PRINTSYSERROR |
#define SMTG_DEBUGSTR | ( | s | ) |
#define SMTG_VERIFY | ( | f | ) | f; |
#define SMTG_VERIFY_IS | ( | f, | |
r | |||
) | f; |
#define SMTG_VERIFY_NOT | ( | f, | |
r | |||
) | f; |
#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 |
bool AmIBeingDebugged | ( | ) |
Returns true if a debugger is attached.
bool isSmtgUnitTesting | ( | ) |
void setSmtgUnitTesting | ( | ) |