mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This not only restores the correct behavior for classes with generic ancestry, but also handles actual generic classes as well. (This is the function that backs Foundation's Bundle.init(for: AnyClass) initializer.) https://bugs.swift.org/browse/SR-1917 rdar://problem/33450609&40367300
8 lines
186 B
C
8 lines
186 B
C
static inline const char *getNameOfClassToFind() {
|
|
return "SimpleNSObjectSubclass.SimpleSubclass";
|
|
}
|
|
|
|
static inline const char *getHookName() {
|
|
return "objc_setHook_getImageName";
|
|
}
|