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

Function dfhack_event_len

library/LuaTools.cpp:1553–1559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551}
1552
1553static int dfhack_event_len(lua_State *L)
1554{
1555 luaL_checktype(L, 1, LUA_TUSERDATA);
1556 auto obj = (EventObject *)lua_touserdata(L, 1);
1557 lua_pushinteger(L, obj->item_count);
1558 return 1;
1559}
1560
1561static int dfhack_event_tostring(lua_State *L)
1562{

Callers

nothing calls this directly

Calls 3

luaL_checktypeFunction · 0.85
lua_touserdataFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected