| 833 | } |
| 834 | |
| 835 | void* ToUserType(lua_State* L, int user_data_index, uint32_t type_hash) |
| 836 | { |
| 837 | if (GetUserType(L, user_data_index) == type_hash) |
| 838 | { |
| 839 | return lua_touserdata(L, user_data_index); |
| 840 | } |
| 841 | return 0; |
| 842 | } |
| 843 | |
| 844 | void* CheckUserType(lua_State* L, int user_data_index, uint32_t type_hash, const char* error_message) |
| 845 | { |
no test coverage detected