mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-12 22:38:14 +00:00
REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796
This commit is contained in:
15
src/raylib.h
15
src/raylib.h
@@ -498,14 +498,15 @@ typedef enum {
|
||||
} ConfigFlags;
|
||||
|
||||
// Trace log level
|
||||
// NOTE: Organized by priority level
|
||||
typedef enum {
|
||||
LOG_ALL = 0, // Display all logs
|
||||
LOG_TRACE,
|
||||
LOG_DEBUG,
|
||||
LOG_INFO,
|
||||
LOG_WARNING,
|
||||
LOG_ERROR,
|
||||
LOG_FATAL,
|
||||
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;
|
||||
|
||||
@@ -1015,7 +1016,7 @@ RLAPI int GetRandomValue(int min, int max); // Returns a r
|
||||
RLAPI void TakeScreenshot(const char *fileName); // Takes a screenshot of current screen (filename extension defines format)
|
||||
RLAPI void SetConfigFlags(unsigned int flags); // Setup init configuration flags (view FLAGS)
|
||||
|
||||
RLAPI void TraceLog(int logLevel, const char *text, ...); // Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR)
|
||||
RLAPI void TraceLog(int logLevel, const char *text, ...); // Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
|
||||
RLAPI void SetTraceLogLevel(int logLevel); // Set the current threshold (minimum) log level
|
||||
RLAPI void *MemAlloc(int size); // Internal memory allocator
|
||||
RLAPI void *MemRealloc(void *ptr, int size); // Internal memory reallocator
|
||||
|
Reference in New Issue
Block a user