| 151 | //============================================================================// |
| 152 | |
| 153 | static 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 | |
| 164 | bool LuaHandle::PushLib(const char* name, bool (*entriesFunc)(lua_State*)) { |
no test coverage detected