Brian Kalski
Brian Kalski

Reputation: 957

Objective C closing pragma mark

I use #pragma mark extensively in my projects and I was wondering if there is a closing pragma mark statement. I couldn't seem to find one.

Upvotes: 0

Views: 767

Answers (2)

zaph
zaph

Reputation: 112855

#pragma mark does not have a scope, it is like a // comment so there is no end.

It wold seem that another #pragma mark name or #pragma mark - is a fitting end.

Upvotes: 3

Droppy
Droppy

Reputation: 9721

No I don't believe there is, however I don't see the issue as when one "section" has finished another one will begin, so simply use a #pragma mark - Next Section to mark it.

Upvotes: 2

Related Questions