/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Ride 7 - #regrion #endregion problem

Username:     
Password:     
             

Forum

# 1   2011-04-16 17:05:26 Ride 7 - #regrion #endregion problem

regrom
New member
Registered: 2011-04-16
Posts: 2

Ride 7 - #regrion #endregion problem

Hi,

I try to use #region and #endregion in Ride 7. When I wrote these directives I can collapse the code.
But when try to build my project I get errors:

invalid preprocessing directive #region 
invalid preprocessing directive #endregion

How to use these directives in Ride to collapse the code?

Thanks in advance.
regrom

Offline

 

# 2   2011-04-17 08:59:32 Ride 7 - #regrion #endregion problem

pfandler
Member
From: Hungary
Registered: 2011-02-16
Posts: 26

Re: Ride 7 - #regrion #endregion problem

what about the following solution:

#if 1
.....
#endif

It has the same effect as region, except you need to be careful with the condition... :-)

Offline

 

# 3   2011-04-17 09:12:12 Ride 7 - #regrion #endregion problem

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: Ride 7 - #regrion #endregion problem

#region and #endregion are Microsoft-specific directives. They are not supported in GCC.

Offline

 

# 4   2011-04-17 13:36:44 Ride 7 - #regrion #endregion problem

regrom
New member
Registered: 2011-04-16
Posts: 2

Re: Ride 7 - #regrion #endregion problem

pfandler :

what about the following solution:

#if 1
.....
#endif

It has the same effect as region, except you need to be careful with the condition... :-)

That is a nice solution, thanks a lot. Thank for reply and help.

ntrf.zns < good to know that, thanks

Offline

 

Board footer