| Using the GNU Compiler Collection (GCC): Modern GNU Objective-C runtime API |
|---|
The GNU Objective-C runtime provides an API which is similar to the one provided by the “Objective-C 2.0” Apple/NeXT Objective-C runtime. The API is documented in the public header files of the GNU Objective-C runtime:
id, Class
and BOOL. You have to include this header to do almost
anything with Objective-C.
class_getName(), declared in
objc/runtime.h.
@synchronized() syntax, allowing
you to emulate an Objective-C @synchronized() block in plain
C/C++ code.
objc_mutex_lock(), which provide a
platform-independent set of threading functions.
The header files contain detailed documentation for each function in the GNU Objective-C runtime API.