1

I want create macros, which return self class.

MyCustomClass.m:

static MyCustomClass *_instance = nil;  //not suitable
static [self class]  *_instance = nil;  //incorrect, but want like this
static SELF_CLASS    *_instance = nil;  //target 

How can create macros like this:

#define SELF_CLASS ...?...
Rubinc
  • 125
  • 6

0 Answers0