hovergames / avalon

Various extensions, helper and functions for cocos2d-x
Other
91 stars 37 forks source link

add some preprocessor defines to make checks easy #22

Closed michaelcontento closed 11 years ago

michaelcontento commented 11 years ago

turns

#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID && AVALON_PLATFORM_FLAVOR == AVALON_PLATFORM_FLAVOR_AMAZON)
// ...
#endif

into

#if AVALON_PLATFORM_IS_IOS || AVALON_PLATFORM_IS_ANDROID_AMAZON
// ...
#endif