mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-18 13:41:26 +01:00
Corrected TraceLog issue
This commit is contained in:
10
src/utils.c
10
src/utils.c
@ -44,6 +44,9 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
||||||
|
#define SUPPORT_TRACELOG // Output tracelog messages
|
||||||
|
//#define SUPPORT_TRACELOG_DEBUG // Avoid DEBUG messages tracing
|
||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
@ -65,9 +68,6 @@
|
|||||||
#define RRES_IMPLEMENTATION
|
#define RRES_IMPLEMENTATION
|
||||||
#include "rres.h"
|
#include "rres.h"
|
||||||
|
|
||||||
//#define NO_TRACELOG // Avoid TraceLog() output (any type)
|
|
||||||
#define DO_NOT_TRACE_DEBUG_MSGS // Avoid DEBUG messages tracing
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Global Variables Definition
|
// Global Variables Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
@ -94,10 +94,10 @@ void TraceLog(int msgType, const char *text, ...)
|
|||||||
{
|
{
|
||||||
#if defined(SUPPORT_TRACELOG)
|
#if defined(SUPPORT_TRACELOG)
|
||||||
static char buffer[128];
|
static char buffer[128];
|
||||||
int traceDebugMsgs = 1;
|
int traceDebugMsgs = 0;
|
||||||
|
|
||||||
#if defined(SUPPORT_TRACELOG_DEBUG)
|
#if defined(SUPPORT_TRACELOG_DEBUG)
|
||||||
traceDebugMsgs = 0;
|
traceDebugMsgs = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch(msgType)
|
switch(msgType)
|
||||||
|
|||||||
Reference in New Issue
Block a user