开发者

Predefines for iPhone os and mac os

开发者 https://www.devze.com 2023-01-13 01:47 出处:网络
As im working on a game engine for my company. i got in the setup fase and i need some predefines to check the os on the device / desktop. I need pre开发者_如何学Cdefines to check when ever the target

As im working on a game engine for my company. i got in the setup fase and i need some predefines to check the os on the device / desktop. I need pre开发者_如何学Cdefines to check when ever the target os is windows / mac or iphone os. Can any one help me with that? god bless you in advance :).


As far as i know (which admittedly isn't far) you can check for #if TARGET_OS_WIN32 or #if TARGET_OS_MAC or #if TARGET_OS_IPHONE for wether or not its that device.
I hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消