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

Function dfhack_event_index

library/LuaTools.cpp:1569–1576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1567}
1568
1569static int dfhack_event_index(lua_State *L)
1570{
1571 luaL_checktype(L, 1, LUA_TUSERDATA);
1572 lua_getuservalue(L, 1);
1573 lua_pushvalue(L, 2);
1574 lua_rawget(L, -2);
1575 return 1;
1576}
1577
1578static int dfhack_event_next(lua_State *L)
1579{

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.85
lua_getuservalueFunction · 0.85
lua_pushvalueFunction · 0.85
lua_rawgetFunction · 0.85

Tested by

no test coverage detected