MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / checkTableFloat

Function checkTableFloat

src/world/WorldScript.cpp:652–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650
651
652static inline float checkTableFloat(lua_State* L, int table, int index) {
653 lua_pushint(L, index);
654 lua_gettable(L, table);
655 const float value = luaL_checkfloat(L, -1);
656 lua_pop(L, 1);
657 return value;
658}
659
660//============================================================================//
661

Callers 3

AddVertexMethod · 0.85
AddNormalMethod · 0.85
AddTexCoordMethod · 0.85

Calls 3

lua_pushintFunction · 0.85
luaL_checkfloatFunction · 0.85
lua_gettableFunction · 0.50

Tested by

no test coverage detected