Return "nil" instead of nil from class_getName with a nil argument. This is stupid (what happens if you have a class called nil?) but it is what OS X does.

main
theraven 15 years ago
parent 2e3b19b735
commit 94e5f7b344

@ -347,7 +347,7 @@ const char *class_getIvarLayout(Class cls)
const char * class_getName(Class cls)
{
CHECK_ARG(cls);
if (Nil == cls) { return "nil"; }
return cls->name;
}

Loading…
Cancel
Save