hotloading!!
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#include "Log.h"
|
||||
#include <cstdio>
|
||||
#include <bx/string.h>
|
||||
|
||||
namespace Game
|
||||
namespace
|
||||
{
|
||||
void Log(const char* text)
|
||||
{
|
||||
printf("%s\n", text);
|
||||
}
|
||||
char LineBuffer[1024]{0};
|
||||
}
|
||||
|
||||
void Log(const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
bx::snprintf(LineBuffer, sizeof(LineBuffer), "%s\n", format);
|
||||
bx::printf(LineBuffer, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user