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

Function is_null

library/LuaTypes.cpp:272–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272static bool is_null(lua_State *state, int val_index)
273{
274 return lua_isnil(state, val_index) ||
275 (lua_islightuserdata(state, val_index) &&
276 !lua_touserdata(state, val_index));
277}
278
279void df::pointer_identity::lua_write(lua_State *state, int fname_idx, void *ptr,
280 const type_identity *target, int val_index)

Callers 1

lua_writeMethod · 0.85

Calls 1

lua_touserdataFunction · 0.85

Tested by

no test coverage detected