| 674 | return 1; |
| 675 | } |
| 676 | static int GetV(lua_State* L)LNOEXCEPT |
| 677 | { |
| 678 | if (!lua_istable(L, 1)) |
| 679 | return luaL_error(L, "invalid lstg object for 'GetV'."); |
| 680 | double v, a; |
| 681 | lua_rawgeti(L, 1, 2); // t(object) ??? id |
| 682 | if (!LPOOL.GetV((size_t)luaL_checkinteger(L, -1), v, a)) |
| 683 | return luaL_error(L, "invalid lstg object for 'GetV'."); |
| 684 | lua_pushnumber(L, v); |
| 685 | lua_pushnumber(L, a); |
| 686 | return 2; |
| 687 | } |
| 688 | static int SetV(lua_State* L)LNOEXCEPT |
| 689 | { |
| 690 | if (!lua_istable(L, 1)) |
nothing calls this directly
no outgoing calls
no test coverage detected