MCPcopy Create free account
hub / github.com/DFHack/dfhack / CheckDFObject

Function CheckDFObject

library/include/LuaTools.h:177–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 */
176 template<df_object T>
177 T *CheckDFObject(lua_State *state, int val_index, bool exact_type = false) {
178 return (T*)CheckDFObject(state, df::identity_traits<T>::get(), val_index, exact_type);
179 }
180
181 /**
182 * Assign the value at val_index to the target using df.assign().

Callers 1

checkaddrFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected