| 218 | } |
| 219 | |
| 220 | RESTORE_WARNING_UNREACHABLE_CODE |
| 221 | |
| 222 | /* Check that parameters are nothing but single table, |
| 223 | or if no parameters given, put empty table there */ |
| 224 | void |
| 225 | lcheck_param_table(lua_State *L) |
| 226 | { |
| 227 | int argc = lua_gettop(L); |
| 228 | |
| 229 | if (argc < 1) |
| 230 | lua_createtable(L, 0, 0); |
| 231 | |
| 232 | /* discard any extra arguments passed in */ |
| 233 | lua_settop(L, 1); |
| 234 | |
| 235 | luaL_checktype(L, 1, LUA_TTABLE); |
| 236 | } |
| 237 | |
| 238 | DISABLE_WARNING_UNREACHABLE_CODE |
| 239 |
no outgoing calls
no test coverage detected