system/FatalError: add FatalSystemError() overload with WIN32 error code
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
#include "check.h"
|
||||
#include "Compiler.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windef.h>
|
||||
#endif
|
||||
|
||||
class Error;
|
||||
|
||||
/**
|
||||
@@ -53,6 +57,14 @@ gcc_noreturn
|
||||
void
|
||||
FatalSystemError(const char *msg);
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
gcc_noreturn
|
||||
void
|
||||
FatalSystemError(const char *msg, DWORD code);
|
||||
|
||||
#endif
|
||||
|
||||
gcc_noreturn
|
||||
void
|
||||
FormatFatalSystemError(const char *fmt, ...);
|
||||
|
Reference in New Issue
Block a user