| 199 | |
| 200 | |
| 201 | static int luaB_type (lua_State *L) { |
| 202 | int t = lua_type(L, 1); |
| 203 | luaL_argcheck(L, t != LUA_TNONE, 1, "value expected"); |
| 204 | lua_pushstring(L, lua_typename(L, t)); |
| 205 | return 1; |
| 206 | } |
| 207 | |
| 208 | |
| 209 | static int pairsmeta (lua_State *L, const char *method, int iszero, |
nothing calls this directly
no test coverage detected