| 167 | */ |
| 168 | template<df_object T> |
| 169 | T *GetDFObject(lua_State *state, int val_index, bool exact_type = false) { |
| 170 | return (T*)GetDFObject(state, df::identity_traits<T>::get(), val_index, exact_type); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Check that the value is a wrapped DF object of the correct type, and if so return the pointer. Otherwise throw an argument type error. |
no test coverage detected