| 2159 | } |
| 2160 | |
| 2161 | int luabb_isnull(lua_State *lua, int arg_index) |
| 2162 | { |
| 2163 | int type = lua_type(lua, arg_index); |
| 2164 | if (type == LUA_TUSERDATA) { |
| 2165 | const lua_dbtypes_t *n = lua_topointer(lua, arg_index); |
| 2166 | return n->is_null; |
| 2167 | } |
| 2168 | return 0; |
| 2169 | } |
| 2170 | |
| 2171 | int luabb_istyped(lua_State *lua, int arg_index) |
| 2172 | { |
no test coverage detected