mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Reset LastError in some functions for game devs that can't code.
This commit is contained in:
parent
0c16f1942a
commit
3abc5976e0
4 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue