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

Comparing Syncify/Error.hpp (file contents):
Revision 441 by douglas, 2005-04-07T22:53:00-07:00 vs.
Revision 442 by douglas, 2005-04-12T16:50:57-07:00

# Line 23 | Line 23 | struct MENES_DECLARE ApiTraits : public
23          static const unsigned ErrorBase = 10;
24          static const char* GetName() { return "SMBC"; }
25          static ErrorCode GetLastError() { return errno; }
26 <        // XXX: doesn't actually give anything useful
27 <        static ext::String GetMessage(const ErrorCode& code)
28 <        {
29 <                char buffer[1024];
30 <
31 < #ifdef __GNUC__
32 <                return ext::Buffer(::strerror_r(code, buffer, sizeof (buffer)));
33 < #else
34 <                api::Posix::CheckError(::strerror_r(code, buffer, sizeof (buffer)));
35 < #endif
36 <
37 <                return ext::Buffer(buffer);
38 <        }
26 >        static ext::String GetMessage(const ErrorCode& code);
27   };
28  
29   MENES_DECLARE typedef api::ErrorImpl<ApiTraits> Error;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines