C Traceback Configurations
Some compile-time constants can be customized. You can modify it
at include/c_traceback.h.
Configurations
CTB_TRACEBACK_HEADER Variable
Traceback header (i.e. the title printed at the top of the traceback output before “(most recent call last)”). It will be highlighted in bold.
You can change this value to customize the header, e.g. “MyApp Traceback”. If its value is NULL or an empty string, “Traceback” will be used.
#define CTB_TRACEBACK_HEADER ""CTB_MAX_CALL_STACK_DEPTH Variable
Maximum number of call stack frames
#define CTB_MAX_CALL_STACK_DEPTH 32CTB_MAX_NUM_ERROR Variable
Maximum number of simultaneous errors
#define CTB_MAX_NUM_ERROR 16CTB_MAX_ERROR_MESSAGE_LENGTH Variable
Maximum length of error message
#define CTB_MAX_ERROR_MESSAGE_LENGTH 256CTB_DEFAULT_TERMINAL_WIDTH Variable
Terminal width when it cannot be determined
#define CTB_DEFAULT_TERMINAL_WIDTH 80CTB_DEFAULT_FILE_WIDTH Variable
Default output width when printing to file
#define CTB_DEFAULT_FILE_WIDTH 120CTB_HRULE_MAX_WIDTH Variable
Maximum horizontal rule width.
#define CTB_HRULE_MAX_WIDTH 120CTB_HRULE_MIN_WIDTH Variable
Minimum horizontal rule width.
#define CTB_HRULE_MIN_WIDTH 50Last updated on