ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Error.hpp
(Generate patch)

Comparing Spectre2/Error.hpp (file contents):
Revision 428 by douglas, 2005-03-24T17:38:00-08:00 vs.
Revision 431 by douglas, 2005-03-26T22:35:26-08:00

# Line 16 | Line 16
16   #include <menes-api/error.hpp>
17  
18   #include <errno.h>
19 + #include <libsmbclient.h>
20  
21   struct MENES_DECLARE ApiTraits : public api::ErrorTraits<int>
22   {
# Line 45 | Line 46 | _finline int CheckError(int status)
46          return status;
47   }
48  
49 + _finline ::SMBCCTX* CheckError(::SMBCCTX* result)
50 + {
51 +        if (result == NULL)
52 +                throw Error();
53 +        return result;
54 + }
55 +
56   #endif//_Error_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines