MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / GetV

Method GetV

LuaSTGPlus/LuaWrapper.cpp:676–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected