Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
debug.cpp File Reference
#include "porting.h"
#include "debug.h"
#include "exceptions.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <sstream>
#include <thread>
#include "threading/mutex_auto_lock.h"
#include "config.h"
+ Include dependency graph for debug.cpp:

Functions

void sanity_check_fn (const char *assertion, const char *file, unsigned int line, const char *function)
 
void fatal_error_fn (const char *msg, const char *file, unsigned int line, const char *function)
 
std::string debug_describe_exc (const std::exception &e)
 
void debug_set_exception_handler ()
 

Function Documentation

◆ debug_describe_exc()

std::string debug_describe_exc ( const std::exception & e)

Referenced by ClientLauncher::run(), and script_exception_wrapper().

+ Here is the caller graph for this function:

◆ debug_set_exception_handler()

void debug_set_exception_handler ( )

Referenced by main().

+ Here is the caller graph for this function:

◆ fatal_error_fn()

void fatal_error_fn ( const char * msg,
const char * file,
unsigned int line,
const char * function )

References errorstream, g_term_console, and TerminalChatConsole::stopAndWaitforThread().

+ Here is the call graph for this function:

◆ sanity_check_fn()

void sanity_check_fn ( const char * assertion,
const char * file,
unsigned int line,
const char * function )

References errorstream, g_term_console, and TerminalChatConsole::stopAndWaitforThread().

+ Here is the call graph for this function: