mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-17 16:58:14 +00:00
Adding MACRO constant to specify the internal buffer size.
This commit is contained in:
@@ -46,6 +46,8 @@
|
|||||||
#include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end()
|
#include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end()
|
||||||
#include <string.h> // Required for: strlen(), strrchr(), strcmp()
|
#include <string.h> // Required for: strlen(), strrchr(), strcmp()
|
||||||
|
|
||||||
|
#define MAX_TRACELOG_BUFFER_SIZE 128 // Max length of a trace-log message.
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Global Variables Definition
|
// Global Variables Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
@@ -93,7 +95,7 @@ void SetTraceLogCallback(TraceLogCallback callback)
|
|||||||
void TraceLog(int msgType, const char *text, ...)
|
void TraceLog(int msgType, const char *text, ...)
|
||||||
{
|
{
|
||||||
#if defined(SUPPORT_TRACELOG)
|
#if defined(SUPPORT_TRACELOG)
|
||||||
static char buffer[128];
|
char buffer[MAX_TRACELOG_BUFFER_SIZE];
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, text);
|
va_start(args, text);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user