Reset LastError in some functions for game devs that can't code.

This commit is contained in:
Mr_Goldberg 2022-08-11 20:52:02 -04:00
parent 0c16f1942a
commit 3abc5976e0
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
4 changed files with 14 additions and 0 deletions

View file

@ -99,6 +99,11 @@ inline std::wstring utf8_decode(const std::string &str)
return wstrTo;
}
inline void reset_LastError()
{
SetLastError(0);
}
#elif defined(__LINUX__)
#include <arpa/inet.h>
@ -129,6 +134,7 @@ inline std::wstring utf8_decode(const std::string &str)
#define PATH_SEPARATOR "/"
#define utf8_decode(a) a
#define reset_LastError()
#endif
//#define PRINT_DEBUG(...) fprintf(stdout, __VA_ARGS__)
#ifdef EMU_RELEASE_BUILD