mirror of
https://github.com/minetest/minetest.git
synced 2024-08-19 04:54:18 +02:00
parent
21de17e3b6
commit
70df3d54f3
@ -457,9 +457,17 @@ size_t read_stringlist(lua_State *L, int index, std::vector<std::string> *result
|
||||
Table field getters
|
||||
*/
|
||||
|
||||
#if defined(__MINGW32__) && !defined(__MINGW64__)
|
||||
/* MinGW 32-bit somehow crashes in the std::set destructor when this
|
||||
* variable is thread-local, so just don't do that. */
|
||||
static std::set<u64> warned_msgs;
|
||||
#endif
|
||||
|
||||
bool check_field_or_nil(lua_State *L, int index, int type, const char *fieldname)
|
||||
{
|
||||
static thread_local std::set<u64> warned_msgs;
|
||||
#if !defined(__MINGW32__) || defined(__MINGW64__)
|
||||
thread_local std::set<u64> warned_msgs;
|
||||
#endif
|
||||
|
||||
int t = lua_type(L, index);
|
||||
if (t == LUA_TNIL)
|
||||
|
Loading…
Reference in New Issue
Block a user