Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Assumes NSError **error is in the current scope
- #define SET_ERROR(errorCode, description, recovery) \
- if (error) \
- *error = [NSError errorWithDomain: @"com.github.mirek" \
- code: errorCode \
- userInfo: [NSDictionary dictionaryWithObjectsAndKeys: \
- description, NSLocalizedDescriptionKey, \
- recovery, NSLocalizedRecoverySuggestionErrorKey, \
- nil]]
Add Comment
Please, Sign In to add comment