src/main.h

changeset 560
39085791128f
parent 557
04e140bdeb0b
child 566
549c63863544
equal deleted inserted replaced
559:5a31f6c14451 560:39085791128f
98 #define FUNCNAME __PRETTY_FUNCTION__ 98 #define FUNCNAME __PRETTY_FUNCTION__
99 #else 99 #else
100 #define FUNCNAME __func__ 100 #define FUNCNAME __func__
101 #endif // __GNUC__ 101 #endif // __GNUC__
102 102
103 #ifdef IN_IDE_PARSER
104 void dlog(void, ...) {}
105 #else
106 # ifdef DEBUG
107 # define dlog(...) log( str( __PRETTY_FUNCTION__ ) + ": " __VA_ARGS__)
108 # else
109 # define dlog(...)
110 # endif // DEBUG
111 #endif // IN_IDE_PARSER
112
103 // Replace assert with a version that shows a GUI dialog if possible. 113 // Replace assert with a version that shows a GUI dialog if possible.
104 // On Windows I just can't get the actual error messages otherwise. 114 // On Windows I just can't get the actual error messages otherwise.
105 void assertionFailure (const char* file, int line, const char* funcname, const char* expr); 115 void assertionFailure (const char* file, int line, const char* funcname, const char* expr);
106 116
107 #ifdef assert 117 #ifdef assert

mercurial