diff options
| author | Ray <[email protected]> | 2021-05-30 18:02:06 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-30 18:02:06 +0200 |
| commit | 71995d52b36c86b09f064953fb3dd2d2fd60c704 (patch) | |
| tree | 152651cd09fdecab36f3928222783d99fd1865d7 /src/rlgl.h | |
| parent | a178a2170bb821fbee135c17fc166733caa19bda (diff) | |
| download | raylib-71995d52b36c86b09f064953fb3dd2d2fd60c704.tar.gz raylib-71995d52b36c86b09f064953fb3dd2d2fd60c704.zip | |
REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796
Diffstat (limited to 'src/rlgl.h')
| -rw-r--r-- | src/rlgl.h | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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) |
