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

Function CheckEqualStack

src/lua/LuaHandle.cpp:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151//============================================================================//
152
153static void CheckEqualStack(const LuaHandle* lh, lua_State* L, int top,
154 const char* tableName) {
155 if (top != lua_gettop(L)) {
156 std::string msg = __FUNCTION__;
157 msg += " : " + lh->GetName() + " : ";
158 msg += tableName;
159 LuaLog(0, "ERROR: %s has an unequal stack\n", msg.c_str());
160 }
161}
162
163
164bool LuaHandle::PushLib(const char* name, bool (*entriesFunc)(lua_State*)) {

Callers 1

PushLibMethod · 0.85

Calls 4

LuaLogFunction · 0.85
c_strMethod · 0.80
lua_gettopFunction · 0.50
GetNameMethod · 0.45

Tested by

no test coverage detected