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