Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if(PLATFORM==ANDROID)
- string url="android";
- #elif(PLATFORM==IOS)
- string url="ios";
- #endif
- string url=URLHelper::getURL();
- class URLHelper{
- public:
- static std::string getURL();
- };
- #include "URLHelper.h"
- std::string URLHelper::getURL(){
- return "android"
- }
- #include "URLHelper.h"
- std::string URLHelper::getURL(){
- return "ios"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement