flush stdout for Log

This commit is contained in:
Nick Fisher
2022-12-09 14:42:38 +08:00
parent c1e0d9e374
commit 2ee5e989b3

View File

@@ -10,6 +10,7 @@
#define LOGTAG "PolyvoxFilament"
#else
#include <stdio.h>
#include <iostream>
#endif
static void Log(const char *fmt, ...) {
@@ -23,7 +24,7 @@ static void Log(const char *fmt, ...) {
NSLogv(format, args);
#else
vprintf(fmt, args);
printf("\n");
std::cout << std::endl;
#endif
va_end(args);