C++ equivalent to region in C#

C++ equivalent to region in C#

Hey everyone, I just discovered the C++ equivalent to the C# compiler directive #region.

#pragma region MY_REGION

//some stuff

#pragma endregion

If you're using Visual Studio, you also get the nice region collapsing feature.

The Fattest
04/07/2009 - 15:04

Sweet.

reply

Add Comment

Put code snippets inside language tags:
[language] [/language]

Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]

See here for supported languages.

Javascript must be enabled to submit anonymous comments - or you can login.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.