Using #pragma region and other platforms

Greetings,

We’re working on a mobile game to be released on Android and iOS. We use visual studio for writing C++ and we’re wondering if it’d be a problem if we use the following if we are to deploy to the target platform:

#pragma region

// Code...

#pragma endregion This is a region comment

This directive helps us make the code more organized.

Thanks for any feedback!

Hi,

I know this post is old but hopefully it will help somebody having a similar issue.

The #pragma region directive doesn’t play nice when trying to build for IOS. If you still want to benefit from code folding you can do something like;

#ifndef MyRegoin

//CODE

#endif