[haiku-development] Re: What is the use of #pragma mark?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 01 Jul 2010 14:23:09 +0200

On 2010-07-01 at 14:16:19 [+0200], Wim van der Meer 
<wpjvandermeer@xxxxxxxxx> wrote:
> On Thu, Jul 1, 2010 at 8:57 PM, Ithamar R. Adema
> <ithamar.adema@xxxxxxxxxxxxxxxx> wrote:
> > On Thu, 2010-07-01 at 20:36 +0900, Wim van der Meer wrote:
> >> commented #pragma mark statements in the Haiku source,
> >> which seems to be a way for Xcode (a suite of tools for developing
> >> software on Mac OS X) to organize source code.
> >
> > Not only Xcode, but also our native editor Pe uses these IIRC.
> >
> > IMHO, they should be kept.
> 
> Even if they are commented out? I don't understand how these
> directives can be useful that way.

They aren't used for the compiler, just for the editor, which is fine with 
them commented. I'm not even sure, if the compiler would complain when 
reading those.

CU, Ingo

Other related posts: