IOSAD-121 Documentation. IOSAD-121
authorDirk Zimmermann <dz@pep.security>
Fri, 09 Aug 2019 09:47:15 +0200
branchIOSAD-121
changeset 115368284c380b4e
parent 1152 c5d8810c470e
child 1164 698fc66beda1
IOSAD-121 Documentation.
pEpObjCAdapter/PEPSession.m
     1.1 --- a/pEpObjCAdapter/PEPSession.m	Fri Aug 09 09:47:15 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSession.m	Fri Aug 09 09:47:15 2019 +0200
     1.3 @@ -19,6 +19,13 @@
     1.4  
     1.5  @implementation PEPSession
     1.6  
     1.7 +/**
     1.8 + Macro for causing a return if the given session is nil, optionally setting an error.
     1.9 +
    1.10 + @param session A session object that will be checked for being nil or not.
    1.11 + @param error If non-nil, will receive PEP_UNKNOWN_ERROR when the session is nil.
    1.12 + @param what The value to return in case of an error (session is nil).
    1.13 + */
    1.14  #define RETURN_ON_ERROR(session, error, what)\
    1.15    if (session == nil) { \
    1.16      if (error != nil) { \