You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
868 B
C
25 lines
868 B
C
/**
|
|
* This file includes all of the hooks that can be used to alter the behaviour
|
|
* of the runtime.
|
|
*/
|
|
|
|
|
|
#ifndef OBJC_HOOK
|
|
#define OBJC_HOOK extern
|
|
#endif
|
|
struct objc_category;
|
|
/**
|
|
* Class lookup hook. Set this to provide a mechanism for resolving classes
|
|
* that have not been registered with the runtime. This can be used for lazy
|
|
* library loading, for example. The hook takes a class name as an argument
|
|
* and returns the class. A JIT compiler could use this to allow classes to be
|
|
* compiled the first time that they are looked up. If the class is already
|
|
* registered with the runtime, this will not be called, so it can not be used
|
|
* for lazy loading of categories.
|
|
*/
|
|
OBJC_HOOK Class (*_objc_lookup_class)(const char *name);
|
|
/**
|
|
* Class load callback.
|
|
*/
|
|
OBJC_HOOK void (*_objc_load_callback)(Class class, struct objc_category *category);
|