mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-27 14:10:33 +00:00
6317b79a10
clang trunk if -fobjc-runtime-1.7 is specified and provides significantly better interoperability with foreign exceptions. Note: Most of the exception tests will not pass with gcc or clang < 3.3. They test things that are impossible to implement quite correctly with the GCC-compatible exception ABI. Also updated the release notes to reflect recent improvements.
48 lines
1.5 KiB
C
48 lines
1.5 KiB
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
/**
|
|
* Allocates a C++ exception. This function is part of the Itanium C++ ABI and
|
|
* is provided externally.
|
|
*/
|
|
__attribute__((weak))
|
|
void *__cxa_allocate_exception(size_t thrown_size);
|
|
/**
|
|
* Initialises an exception object returned by __cxa_allocate_exception() for
|
|
* storing an Objective-C object. The return value is the location of the
|
|
* _Unwind_Exception structure within this structure, and should be passed to
|
|
* the C++ personality function.
|
|
*/
|
|
__attribute__((weak))
|
|
struct _Unwind_Exception *objc_init_cxx_exception(void *thrown_exception);
|
|
/**
|
|
* The GNU C++ exception personality function, provided by libsupc++ (GNU) or
|
|
* libcxxrt (PathScale).
|
|
*/
|
|
__attribute__((weak)) DECLARE_PERSONALITY_FUNCTION(__gxx_personality_v0);
|
|
/**
|
|
* Frees an exception object allocated by __cxa_allocate_exception(). Part of
|
|
* the Itanium C++ ABI.
|
|
*/
|
|
__attribute__((weak))
|
|
void __cxa_free_exception(void *thrown_exception);
|
|
/**
|
|
* Tests whether a C++ exception contains an Objective-C object, and returns if
|
|
* if it does. The second argument is a pointer to a boolean value indicating
|
|
* whether this is a valid object.
|
|
*/
|
|
__attribute__((weak))
|
|
void *objc_object_for_cxx_exception(void *thrown_exception, int *isValid);
|
|
|
|
/**
|
|
* Prints the type info associated with an exception. Used only when
|
|
* debugging, not compiled in the normal build.
|
|
*/
|
|
__attribute__((weak))
|
|
void print_type_info(void *thrown_exception);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|