| 686 | return 2; |
| 687 | } |
| 688 | static int SetV(lua_State* L)LNOEXCEPT |
| 689 | { |
| 690 | if (!lua_istable(L, 1)) |
| 691 | return luaL_error(L, "invalid lstg object for 'SetV'."); |
| 692 | if (lua_gettop(L) == 3) |
| 693 | { |
| 694 | lua_rawgeti(L, 1, 2); // t(object) 'v' 'a' ??? id |
| 695 | if (!LPOOL.SetV((size_t)luaL_checkinteger(L, -1), luaL_checknumber(L, 2), luaL_checknumber(L, 3), false)) |
| 696 | return luaL_error(L, "invalid lstg object for 'SetV'."); |
| 697 | } |
| 698 | else if (lua_gettop(L) == 4) |
| 699 | { |
| 700 | lua_rawgeti(L, 1, 2); // t(object) 'v' 'a' 'rot' ??? id |
| 701 | if (!LPOOL.SetV((size_t)luaL_checkinteger(L, -1), luaL_checknumber(L, 2), luaL_checknumber(L, 3), lua_toboolean(L, 4) == 0 ? false : true)) |
| 702 | return luaL_error(L, "invalid lstg object for 'SetV'."); |
| 703 | } |
| 704 | else |
| 705 | return luaL_error(L, "invalid argument count for 'SetV'."); |
| 706 | return 0; |
| 707 | } |
| 708 | static int SetImgState(lua_State* L)LNOEXCEPT |
| 709 | { |
| 710 | if (!lua_istable(L, 1)) |
nothing calls this directly
no outgoing calls
no test coverage detected