flush stdout for Log
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user