Index: src/exceptions/OFException.h ================================================================== --- src/exceptions/OFException.h +++ src/exceptions/OFException.h @@ -166,11 +166,11 @@ * @brief Returns a backtrace of when the exception was created or nil if no * backtrace is available. * * @return A backtrace of when the exception was created */ -- (nullable OFArray *)backtrace; +- (nullable OFArray OF_GENERIC(OFString *) *)backtrace; @end #ifdef __cplusplus extern "C" { #endif Index: src/exceptions/OFException.m ================================================================== --- src/exceptions/OFException.m +++ src/exceptions/OFException.m @@ -268,14 +268,15 @@ { return [OFString stringWithFormat: @"An exception of type %@ occurred!", [self class]]; } -- (OFArray *)backtrace +- (OFArray OF_GENERIC(OFString *) *)backtrace { #ifdef HAVE_DWARF_EXCEPTIONS - OFMutableArray *backtrace = [OFMutableArray array]; + OFMutableArray OF_GENERIC(OFString *) *backtrace = + [OFMutableArray array]; void *pool = objc_autoreleasePoolPush(); for (uint8_t i = 0; i < OF_BACKTRACE_SIZE && _backtrace[i] != NULL; i++) { # ifdef HAVE_DLADDR