mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 10:48:15 +00:00
REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796
This commit is contained in:
19
src/rlgl.h
19
src/rlgl.h
@@ -329,16 +329,17 @@ typedef enum {
|
||||
int *locs; // Shader locations array (MAX_SHADER_LOCATIONS)
|
||||
} Shader;
|
||||
|
||||
// TraceLog message types
|
||||
// Trace log level
|
||||
// NOTE: Organized by priority level
|
||||
typedef enum {
|
||||
LOG_ALL,
|
||||
LOG_TRACE,
|
||||
LOG_DEBUG,
|
||||
LOG_INFO,
|
||||
LOG_WARNING,
|
||||
LOG_ERROR,
|
||||
LOG_FATAL,
|
||||
LOG_NONE
|
||||
LOG_ALL = 0, // Display all logs
|
||||
LOG_TRACE, // Trace logging, intended for internal use only
|
||||
LOG_DEBUG, // Debug logging, used for internal debugging, it should be disabled on release builds
|
||||
LOG_INFO, // Info logging, used for program execution info
|
||||
LOG_WARNING, // Warning logging, used on recoverable failures
|
||||
LOG_ERROR, // Error logging, used on unrecoverable failures
|
||||
LOG_FATAL, // Fatal logging, used to abort program: exit(EXIT_FAILURE)
|
||||
LOG_NONE // Disable logging
|
||||
} TraceLogLevel;
|
||||
|
||||
// Texture formats (support depends on OpenGL version)
|
||||
|
Reference in New Issue
Block a user