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

Function is_null_userdata

library/LuaTools.cpp:75–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73void dfhack_printerr(lua_State *S, const std::string &str);
74
75inline bool is_null_userdata(lua_State *L, int idx)
76{
77 return lua_islightuserdata(L, idx) && !lua_touserdata(L, idx);
78}
79
80inline void AssertCoreSuspend(lua_State *state)
81{

Callers 3

dfhack_event_nextFunction · 0.85
dfhack_event_newindexFunction · 0.85
dfhack_event_invokeFunction · 0.85

Calls 1

lua_touserdataFunction · 0.85

Tested by

no test coverage detected