Added GetTraceLogLevel function

This commit is contained in:
Idir Aliane Crespo 2024-01-26 21:42:21 +01:00
parent 40f3df5b86
commit 50ba800cb9
2 changed files with 4 additions and 0 deletions

View File

@ -1086,6 +1086,7 @@ RLAPI void OpenURL(const char *url); // Open URL wi
//------------------------------------------------------------------
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 TraceLogLevel GetTraceLogLevel(); // Get the current threshold (minimum) log level
RLAPI void *MemAlloc(unsigned int size); // Internal memory allocator
RLAPI void *MemRealloc(void *ptr, unsigned int size); // Internal memory reallocator
RLAPI void MemFree(void *ptr); // Internal memory free

View File

@ -102,6 +102,9 @@ static int android_close(void *cookie);
// Set the current threshold (minimum) log level
void SetTraceLogLevel(int logType) { logTypeLevel = logType; }
// Get the current threshold (minimum) log level
TraceLogLevel GetTraceLogLevel() { return logTypeLevel; }
// Show trace log messages (LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG)
void TraceLog(int logType, const char *text, ...)
{