Guest User

Untitled

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. // Assumes NSError **error is in the current scope
  2. #define SET_ERROR(errorCode, description, recovery) \
  3. if (error) \
  4. *error = [NSError errorWithDomain: @"com.github.mirek" \
  5. code: errorCode \
  6. userInfo: [NSDictionary dictionaryWithObjectsAndKeys: \
  7. description, NSLocalizedDescriptionKey, \
  8. recovery, NSLocalizedRecoverySuggestionErrorKey, \
  9. nil]]
Add Comment
Please, Sign In to add comment