Gaëtan Renaudeau cf49cf717f first impl of gl-react-native (wip)
it works but remain some bugs and image texture is not yet supported
2017-02-28 22:11:40 +01:00

22 lines
590 B
Plaintext
Executable File

#include "EXiOSUtils.h"
#include <stdarg.h>
#import <Foundation/Foundation.h>
void EXiOSLog(const char *msg, ...) {
va_list args;
va_start(args, msg);
NSLog(@"%@", [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:msg]
arguments:args]);
va_end(args);
}
EXiOSOperatingSystemVersion EXiOSGetOperatingSystemVersion() {
NSOperatingSystemVersion version = NSProcessInfo.processInfo.operatingSystemVersion;
return EXiOSOperatingSystemVersion {
version.majorVersion,
version.minorVersion,
version.patchVersion,
};
}