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

Method SetPrivateCallback

library/LuaTools.cpp:1539–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1537}
1538
1539void DFHack::Lua::Event::SetPrivateCallback(lua_State *L, int event)
1540{
1541 lua_getuservalue(L, event);
1542 lua_swap(L);
1543 lua_rawsetp(L, -2, NULL);
1544 lua_pop(L, 1);
1545}
1546
1547static int dfhack_event_new(lua_State *L)
1548{

Callers

nothing calls this directly

Calls 3

lua_getuservalueFunction · 0.85
lua_swapFunction · 0.85
lua_rawsetpFunction · 0.85

Tested by

no test coverage detected