Warning() => GFX2_Log(GFX2_WARNING)

This commit is contained in:
Thomas Bernard
2020-04-13 00:43:47 +02:00
parent 7f08ad5bb9
commit 2c9b79a6af
10 changed files with 23 additions and 40 deletions

View File

@@ -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__)