Adding MACRO constant to specify the internal buffer size.
This commit is contained in:
parent
56173d7cf4
commit
ce98cc6285
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue