Reputation: 3439
In clang, you can mark a C function that does not return like this:
extern void go_die_somewhere( void ) __attribute__((noreturn));
Is there an equivalent attribute for Objective-C methods?
I've tried adding __attribute__((noreturn))
to the method declaration every way I can think of, but the compiler ignores it. I also couldn't find any NS_...
macro with the same purpose.
Upvotes: 4
Views: 384