| 234 | } |
| 235 | |
| 236 | static void check_valid_ptr_index(lua_State *state, int val_index) |
| 237 | { |
| 238 | if (lua_type(state, val_index) == LUA_TNONE) |
| 239 | { |
| 240 | if (val_index > 0) |
| 241 | luaL_argerror(state, val_index, "pointer expected"); |
| 242 | else |
| 243 | luaL_error(state, "at index %d: pointer expected", val_index); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | static void signal_typeid_error(color_ostream* out, lua_State* state, |
| 248 | const type_identity* type, std::string_view msg, |
no test coverage detected