I need to write a large class that I'd like to be able to edit in Visual Studio and compile for Windows for testing but the whole app targets Android in the end.
The class in question would only have Android specific code (it would be an interface for the gpg C++ SDK). Due to a series of complications I'm basically forced to do it myself and surround each function's content with something like this
GooglePlayManager::GooglePlayManager()
{
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
//code
#endif
}
since otherwise it doesn't compile for Windows. Ideally I would like to define something like this in just this one .cpp file
#define BEGIN_ANDRO { #if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
#define END_ANDRO #endif }
but I can't get it to work. Is there a way to make this happen or a decent alternative I could consider?