开发者

Predefines for iPhone os and mac os

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜