|
|
@ -89,6 +89,9 @@ void createDebug (const char *logPath = NULL, bool logInFile = true, bool eraseL
|
|
|
|
/// Do not call this, unless you know what you're trying to do (it kills debug)!
|
|
|
|
/// Do not call this, unless you know what you're trying to do (it kills debug)!
|
|
|
|
void destroyDebug();
|
|
|
|
void destroyDebug();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Attach exception handler, for new threads and fibers
|
|
|
|
|
|
|
|
void attachExceptionHandler();
|
|
|
|
|
|
|
|
|
|
|
|
// call this if you want to change the dir of the log.log file
|
|
|
|
// call this if you want to change the dir of the log.log file
|
|
|
|
void changeLogDirectory(const std::string &dir);
|
|
|
|
void changeLogDirectory(const std::string &dir);
|
|
|
|
|
|
|
|
|
|
|
@ -352,7 +355,7 @@ void setCrashAlreadyReported(bool state);
|
|
|
|
* Same as nlassertex(false,exp);
|
|
|
|
* Same as nlassertex(false,exp);
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// removed because we always check assert (even in release mode) #if defined (NL_OS_WINDOWS) && defined (NL_DEBUG)
|
|
|
|
#if defined(NL_DEBUG) /* Debug break is only useful in debug builds */
|
|
|
|
#if defined(NL_OS_WINDOWS)
|
|
|
|
#if defined(NL_OS_WINDOWS)
|
|
|
|
#define NLMISC_BREAKPOINT __debugbreak()
|
|
|
|
#define NLMISC_BREAKPOINT __debugbreak()
|
|
|
|
#elif defined(NL_OS_UNIX) && defined(NL_COMP_GCC)
|
|
|
|
#elif defined(NL_OS_UNIX) && defined(NL_COMP_GCC)
|
|
|
@ -360,6 +363,9 @@ void setCrashAlreadyReported(bool state);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define NLMISC_BREAKPOINT abort()
|
|
|
|
#define NLMISC_BREAKPOINT abort()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define NLMISC_BREAKPOINT do { } while (0)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Internal, don't use it (make smaller assert code)
|
|
|
|
// Internal, don't use it (make smaller assert code)
|
|
|
|
extern bool _assert_stop(bool &ignoreNextTime, sint line, const char *file, const char *funcName, const char *exp);
|
|
|
|
extern bool _assert_stop(bool &ignoreNextTime, sint line, const char *file, const char *funcName, const char *exp);
|
|
|
|