REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796

This commit is contained in:
Ray
2021-05-30 18:02:06 +02:00
parent a178a2170b
commit 71995d52b3
5 changed files with 53 additions and 43 deletions

View File

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