| 219 | /* COMDB2 Change */ |
| 220 | const char *luabb_dbtypename(lua_State *, int); |
| 221 | static int luaB_type (lua_State *L) { |
| 222 | luaL_checkany(L, 1); |
| 223 | const char *dbtype; |
| 224 | if (lua_type(L, 1) == LUA_TUSERDATA |
| 225 | && ((dbtype = luabb_dbtypename(L, lua_gettop(L))) != NULL)) { |
| 226 | lua_pushstring(L, dbtype); |
| 227 | } else { |
| 228 | lua_pushstring(L, luaL_typename(L, 1)); |
| 229 | } |
| 230 | return 1; |
| 231 | } |
| 232 | |
| 233 | |
| 234 | static int luaB_next (lua_State *L) { |
nothing calls this directly
no test coverage detected