Overview
Comment: | Use generic for -[OFException backtrace] |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
70adcc7bddc5bb6b4e9e761172c4c92f |
User & Date: | js on 2017-05-07 21:17:56 |
Other Links: | manifest | tags |
Context
2017-05-07
| ||
21:18 | OFLocking: Remove -[name] and -[setName:] check-in: 150d3df1e9 user: js tags: trunk | |
21:17 | Use generic for -[OFException backtrace] check-in: 70adcc7bdd user: js tags: trunk | |
21:16 | Make -[OFHTTPRequest setBodyFromString:] nonnull check-in: 8016757def user: js tags: trunk | |
Changes
Modified src/exceptions/OFException.h from [4f8a3eb7a0] to [d8d69a707c].
︙ | ︙ | |||
164 165 166 167 168 169 170 | /*! * @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 */ | | | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | /*! * @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 OF_GENERIC(OFString *) *)backtrace; @end #ifdef __cplusplus extern "C" { #endif extern OFString *of_strerror(int errNo); #ifdef __cplusplus |
︙ | ︙ |
Modified src/exceptions/OFException.m from [0b126c90fd] to [254309bfd5].
︙ | ︙ | |||
266 267 268 269 270 271 272 | - (OFString *)description { return [OFString stringWithFormat: @"An exception of type %@ occurred!", [self class]]; } | | > | | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | - (OFString *)description { return [OFString stringWithFormat: @"An exception of type %@ occurred!", [self class]]; } - (OFArray OF_GENERIC(OFString *) *)backtrace { #ifdef HAVE_DWARF_EXCEPTIONS 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 Dl_info info; |
︙ | ︙ |