22 #if defined(__APPLE__) && defined(__MACH__) && defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__)
23 #define __IPHONEOS__ (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
26 #import <Foundation/Foundation.h>
28 #if defined(__IPHONEOS__)
29 #import <UIKit/UIKit.h>
40 std::string version_string;
41 #if defined(__IPHONEOS__)
42 version_string =
"Apple iOS ";
45 version_string =
"Apple macOS ";
47 version_string =
"Apple OS X ";
50 NSOperatingSystemVersion os_ver = [[NSProcessInfo processInfo] operatingSystemVersion];
51 version_string +=
version_info(os_ver.majorVersion, os_ver.minorVersion, os_ver.patchVersion);
53 return version_string;
Represents version numbers.
Interfaces for manipulating version numbers of engine, add-ons, etc.