GrafX2 2.9.3227
The ultimate 256-color painting program
|
Functions and macros for tracing and error reporting. More...
#include "gfx2log.h"
Macros | |
#define | DEBUG(y, z) GFX2_Log(GFX2_DEBUG, "%s %d %s | %s : %d###\n",__FILE__,__LINE__,__func__,y,(unsigned int)z) |
Prints the source filename, line number, function name, a string and an integer. More... | |
#define | DEBUGX(y, z) GFX2_Log(GFX2_DEBUG, "%s %d %s | %s : %X###\n",__FILE__,__LINE__,__func__,y,(unsigned int)z) |
Same as DEBUG but in hexadecimal. More... | |
#define | Error(n) Error_function(n, __FILE__,__LINE__,__func__) |
Report a run-time error: It will print to standard output some information about the calling function, and then: More... | |
Functions | |
void | Error_function (int error_code, const char *filename, int line_number, const char *function_name) |
Helper function used by the macro Error. More... | |
Functions and macros for tracing and error reporting.
#define DEBUG | ( | y, | |
z | |||
) | GFX2_Log(GFX2_DEBUG, "%s %d %s | %s : %d###\n",__FILE__,__LINE__,__func__,y,(unsigned int)z) |
Prints the source filename, line number, function name, a string and an integer.
#define DEBUGX | ( | y, | |
z | |||
) | GFX2_Log(GFX2_DEBUG, "%s %d %s | %s : %X###\n",__FILE__,__LINE__,__func__,y,(unsigned int)z) |
Same as DEBUG but in hexadecimal.
#define Error | ( | n | ) | Error_function(n, __FILE__,__LINE__,__func__) |
Report a run-time error: It will print to standard output some information about the calling function, and then:
void Error_function | ( | int | error_code, |
const char * | filename, | ||
int | line_number, | ||
const char * | function_name | ||
) |
Helper function used by the macro Error.
References backup_palette, Config_directory, Delay_with_active_mouse(), Display_syntax(), ERROR_COMMAND_LINE, ERROR_FORBIDDEN_MODE, ERROR_FORBIDDEN_SIZE, ERROR_GUI_CORRUPTED, ERROR_GUI_MISSING, ERROR_INI_CORRUPTED, ERROR_INI_MISSING, ERROR_MEMORY, ERROR_MISSING_DIRECTORY, ERROR_SAVING_CFG, ERROR_SAVING_INI, ERROR_SORRY_SORRY_SORRY, Get_current_palette(), GFX2_MB_ERROR, GFX2_MessageBox(), Gui_loading_error_message, INI_FILENAME, Line_number_in_INI_file, NULL, Set_palette(), and temp_palette.