scaffold
1.0.0
Generates files and directories based on templates and user input
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
scaffold_debug.h
Go to the documentation of this file.
1
/* ========================================================================= */
2
/* ------------------------------------------------------------------------- */
/*
11
12
13
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
Please read COPYING and README files in root folder
15
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16
*/
17
/* ------------------------------------------------------------------------- */
18
/* ========================================================================= */
19
#ifndef __SCAFFOLD_DEBUG_INC__
20
#define __SCAFFOLD_DEBUG_INC__
21
//
22
//
23
//
24
//
25
/* INCLUDES ------------------------------------------------------------ */
26
27
/* we make sure we have the user settings before this file */
28
#include <scaffold/scaffold_config.h>
29
#include <
scaffold/scaffold_global.h
>
30
31
/* INCLUDES ============================================================ */
32
//
33
//
34
//
35
//
36
/* DEFINITIONS --------------------------------------------------------- */
37
38
#ifndef CMDT_ENABLE_LOGGING
39
# ifndef QT_NO_DEBUG
40
41
# define CMDT_ENABLE_LOGGING 1
42
# define WAIT_DEBUGGER asm volatile ( "int %3\n" );
43
# else
44
45
# define CMDT_ENABLE_LOGGING 0
46
# define WAIT_DEBUGGER
47
# endif
48
#endif
49
50
#if CMDT_ENABLE_LOGGING
51
# include <QDebug>
52
53
bool
debugEnabled();
54
void
setDebugEnabled(
bool
b);
55
56
#if (!defined Q_OS_MSDOS) && (!defined Q_OS_WIN32) && (!defined Q_OS_WINCE)
57
# define BEFORE_DEBUG "\x1b[33;1m"
58
# define AFTER_DEBUG "\x1b[0m"
59
#else
60
# define BEFORE_DEBUG ""
61
# define AFTER_DEBUG ""
62
#endif
63
66
# define APRDBG(txt) \
67
if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt << AFTER_DEBUG
68
# define APRDBG2(txt1,txt2) \
69
if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt1 << txt2 << AFTER_DEBUG
70
# define APRDBG3(txt1,txt2,txt3) \
71
if (debugEnabled()) qDebug() << BEFORE_DEBUG "DEBUG: " << txt1 << txt2 << txt3 << AFTER_DEBUG
72
# define APRDBG_FUNC \
73
if (debugEnabled()) APRDBG( __func__ )
74
# define APRDBG_CDTOR \
75
if (debugEnabled()) APRDBG2( __func__, this )
76
77
78
79
#else
80
81
82
# define APRDBG(txt)
83
# define APRDBG2(txt1,txt2)
84
# define APRDBG3(txt1,txt2,txt3)
85
# define APRDBG_FUNC
86
# define APRDBG_CDTOR
87
88
#endif
89
90
91
92
93
94
/* DEFINITIONS ========================================================= */
95
//
96
//
97
//
98
//
99
/* DATA ---------------------------------------------------------------- */
100
101
/* DATA ================================================================ */
102
//
103
//
104
//
105
//
106
/* FUNCTIONS ----------------------------------------------------------- */
107
108
/* FUNCTIONS =========================================================== */
109
//
110
//
111
//
112
//
113
#endif // __SCAFFOLD_DEBUG_INC__
114
/* ------------------------------------------------------------------------- */
115
/* ========================================================================= */
src3
scaffold
scaffold_debug.h
Generated on Thu Aug 8 2013 20:06:55 for scaffold by
1.8.3.1