20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#import "OFExceptions.h"
#if defined HAVE_SEL_GET_NAME
#define SEL_NAME(x) sel_get_name(x)
#elif defined HAVE_SEL_GETNAME
#define SEL_NAME(x) sel_getName(x)
#endif
@implementation OFException
+ newWithObject: (id)obj
{
return [[OFException alloc] initWithObject: obj];
}
|
>
>
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#import "OFExceptions.h"
#if defined HAVE_SEL_GET_NAME
#define SEL_NAME(x) sel_get_name(x)
#elif defined HAVE_SEL_GETNAME
#define SEL_NAME(x) sel_getName(x)
#else
#error "You need either sel_get_name() or sel_getName!"
#endif
@implementation OFException
+ newWithObject: (id)obj
{
return [[OFException alloc] initWithObject: obj];
}
|