Warning() => GFX2_Log(GFX2_WARNING)
This commit is contained in:
10
src/errors.h
10
src/errors.h
@@ -47,13 +47,3 @@ void Error_function(int error_code, const char *filename, int line_number, const
|
||||
/// - If the error code is 0, just do a red screen flash and resume.
|
||||
/// - If the error code is non-zero, abort the program.
|
||||
#define Error(n) Error_function(n, __FILE__,__LINE__,__func__)
|
||||
|
||||
/// Helper function used by the macro ::Warning
|
||||
void Warning_function(const char *message, const char *filename, int line_number, const char *function_name);
|
||||
|
||||
///
|
||||
/// Report a run-time abnormal condition : It will print to standard output
|
||||
/// some information about the calling function, and then resume silently.
|
||||
/// This is most useful in debugger so you can put a breakpoint on
|
||||
/// ::Warning_function and examine the stack trace.
|
||||
#define Warning(msg) Warning_function(msg, __FILE__,__LINE__,__func__)
|
||||
|
||||
Reference in New Issue
Block a user