MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getFromLua

Function getFromLua

framework/luaframework.cpp:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19} // namespace
20
21void getFromLua(lua_State *L, int argNum, bool &v) { v = luaL_checkinteger(L, argNum); }
22void getFromLua(lua_State *L, int argNum, float &v) { v = luaL_checknumber(L, argNum); }
23void getFromLua(lua_State *L, int argNum, double &v) { v = luaL_checknumber(L, argNum); }
24void getFromLua(lua_State *L, int argNum, UString &v)

Callers 1

pushLuaFrameworkFunction · 0.70

Calls 2

loadImageMethod · 0.45
loadSampleMethod · 0.45

Tested by

no test coverage detected