diff options
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index fff224eed..966af359e 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -843,6 +843,15 @@ void Anope::Unhex(const Anope::string &src, char *dest) dest[destpos] = 0; } +int Anope::LastErrorCode() +{ +#ifndef _WIN32 + return errno; +#else + return GetLastError(); +#endif +} + const Anope::string Anope::LastError() { #ifndef _WIN32 |