Merge pull request #1880 from MaddTheSane/patch-2

Update error.h
This commit is contained in:
Connor McLaughlin 2021-03-29 16:09:17 +10:00 committed by GitHub
commit d09cc99aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -43,11 +43,11 @@ public:
void SetErrno(int err); void SetErrno(int err);
void SetSocket(int err); void SetSocket(int err);
void SetMessage(const char* msg); void SetMessage(const char* msg);
void SetFormattedMessage(const char* format, ...); void SetFormattedMessage(const char* format, ...) printflike(2, 3);
void SetUser(int err, const char* msg); void SetUser(int err, const char* msg);
void SetUser(const char* code, const char* message); void SetUser(const char* code, const char* message);
void SetUserFormatted(int err, const char* format, ...); void SetUserFormatted(int err, const char* format, ...) printflike(3, 4);
void SetUserFormatted(const char* code, const char* format, ...); void SetUserFormatted(const char* code, const char* format, ...) printflike(3, 4);
#ifdef _WIN32 #ifdef _WIN32
void SetWin32(unsigned long err); void SetWin32(unsigned long err);
void SetHResult(long err); void SetHResult(long err);
@ -58,11 +58,11 @@ public:
static Error CreateErrno(int err); static Error CreateErrno(int err);
static Error CreateSocket(int err); static Error CreateSocket(int err);
static Error CreateMessage(const char* msg); static Error CreateMessage(const char* msg);
static Error CreateMessageFormatted(const char* format, ...); static Error CreateMessageFormatted(const char* format, ...) printflike(1, 2);
static Error CreateUser(int err, const char* msg); static Error CreateUser(int err, const char* msg);
static Error CreateUser(const char* code, const char* message); static Error CreateUser(const char* code, const char* message);
static Error CreateUserFormatted(int err, const char* format, ...); static Error CreateUserFormatted(int err, const char* format, ...) printflike(2, 3);
static Error CreateUserFormatted(const char* code, const char* format, ...); static Error CreateUserFormatted(const char* code, const char* format, ...) printflike(2, 3);
#ifdef _WIN32 #ifdef _WIN32
static Error CreateWin32(unsigned long err); static Error CreateWin32(unsigned long err);
static Error CreateHResult(long err); static Error CreateHResult(long err);