Tips on pragma mark

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Tips on pragma mark

Jean-Daniel Dupas-2
Hi,

I just saw (in commits) you have troubles with pragma mark and portability.
If you use it for Xcode integration, you can use MARK in comments instead.

#pragma mark My code section
is equivalent to
// MARK: My code section

and you can use
// MARK: -
to insert a separator.

Regards

-- Jean-Daniel




_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

mark.patch (630 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Tips on pragma mark

Chris Lattner
Sure, works for me.

-Chris

On Dec 25, 2010, at 7:42 AM, Jean-Daniel Dupas wrote:

> Hi,
>
> I just saw (in commits) you have troubles with pragma mark and portability.
> If you use it for Xcode integration, you can use MARK in comments instead.
>
> #pragma mark My code section
> is equivalent to
> // MARK: My code section
>
> and you can use
> // MARK: -
> to insert a separator.
>
> Regards
>
> -- Jean-Daniel
>
>
>
> <mark.patch>_______________________________________________
> cfe-dev mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev