mirror of
https://github.com/gre/gl-react.git
synced 2026-01-18 16:16:59 +00:00
22 lines
590 B
Plaintext
Executable File
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,
|
|
};
|
|
}
|