mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-28 00:39:30 +00:00
Updated Lua and citro3D, Added a type check in ctr.thread.pool
This commit is contained in:
parent
d3ea68f3d7
commit
2725dce383
81 changed files with 1467 additions and 801 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue