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 431 by douglas, 2005-03-26T22:35:26-08:00 vs.
Revision 443 by douglas, 2005-04-12T16:59:14-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 <        static ext::String GetMessage(const ErrorCode& code)
27 <        {
28 <                char buffer[1024];
29 <
30 < #ifdef __GNUC__
31 <                return ext::Buffer(::strerror_r(code, buffer, sizeof (buffer)));
32 < #else
33 <                api::Posix::CheckError(::strerror_r(code, buffer, sizeof (buffer)));
34 < #endif
35 <
36 <                return ext::Buffer(buffer);
37 <        }
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