src/pEp_internal.h
branchENGINE-199
changeset 1722 1d16b6822287
parent 1648 158e65c83311
child 1729 1dd554ac85d1
     1.1 --- a/src/pEp_internal.h	Wed Apr 19 13:42:06 2017 +0200
     1.2 +++ b/src/pEp_internal.h	Wed Apr 19 17:44:19 2017 +0200
     1.3 @@ -162,8 +162,12 @@
     1.4      bool use_only_own_private_keys;
     1.5      bool keep_sync_msg;
     1.6      
     1.7 +#ifdef DEBUG_ERRORSTACK
     1.8 +    stringlist_t* errorstack;
     1.9 +#endif
    1.10  };
    1.11  
    1.12 +
    1.13  PEP_STATUS init_transport_system(PEP_SESSION session, bool in_first);
    1.14  void release_transport_system(PEP_SESSION session, bool out_last);
    1.15  
    1.16 @@ -229,3 +233,11 @@
    1.17      
    1.18      return ai == fpras && bi == fprbs;
    1.19  }
    1.20 +
    1.21 +
    1.22 +#ifdef DEBUG_ERRORSTACK
    1.23 +    PEP_STATUS session_add_error(PEP_SESSION session, const char* file, unsigned line, PEP_STATUS status);
    1.24 +    #define ERROR(status)   session_add_error(session, __FILE__, __LINE__, (status))
    1.25 +#else
    1.26 +    #define ERROR(status)   (status)
    1.27 +#endif