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

Function dfhack_penarray_get_dims

library/LuaApi.cpp:1004–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004static int dfhack_penarray_get_dims(lua_State *L)
1005{
1006 PenArray *parr = check_penarray_native(L, 1);
1007 lua_pushinteger(L, parr->get_dimx());
1008 lua_pushinteger(L, parr->get_dimy());
1009 return 2;
1010}
1011
1012static int dfhack_penarray_get_tile(lua_State *L)
1013{

Callers

nothing calls this directly

Calls 2

check_penarray_nativeFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected