1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00

Updated Lua and citro3D, Added a type check in ctr.thread.pool

This commit is contained in:
Firew0lf 2016-09-24 18:42:40 +02:00
parent d3ea68f3d7
commit 2725dce383
81 changed files with 1467 additions and 801 deletions

View file

@ -351,9 +351,11 @@ static int pool_set(lua_State *L) {
pool[addr+1].type = BOL;
pool[addr+1].boolean = lua_toboolean(L, 2);
break;
default: // including LUA_TNIL
case LUA_TNIL: // including LUA_TNIL
pool[addr+1].type = NIL;
break;
default:
luaL_error(L, "Unsupported type: %s", lua_typename(L, lua_type(L, 2)));
}
}
return 0;