update external headers

This commit is contained in:
Nick Fisher
2022-02-06 13:28:28 +08:00
parent 24d0973129
commit a08f3d95e3
150 changed files with 27445 additions and 14805 deletions

25
ios/src/Log.h Normal file
View File

@@ -0,0 +1,25 @@
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#elif defined __ANDROID__
#include <android/log.h>
#define LOGTAG "PolyvoxFilament"
#else
#include <stdio.h>
#endif
void Log(const char *fmt, ...) {
va_list args;
va_start(args, fmt);
#ifdef __ANDROID__
__android_log_vprint(ANDROID_LOG_DEBUG, LOGTAG, fmt, args);
#elif defined __OBJC__
NSString *format = [[NSString alloc] initWithUTF8String:fmt];
NSLogv(format, args);
[format release];
#else
printf(fmt, args);
#endif
va_end(args);
}