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

Function textures_getTexposByHandle

library/LuaApi.cpp:2070–2080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2068}
2069
2070static int textures_getTexposByHandle(lua_State *state)
2071{
2072 auto handle = luaL_checkunsigned(state, 1);
2073 auto texpos = Textures::getTexposByHandle(handle);
2074 if (texpos == -1) {
2075 lua_pushnil(state);
2076 } else {
2077 Lua::Push(state, texpos);
2078 }
2079 return 1;
2080}
2081
2082static int textures_deleteHandle(lua_State *state)
2083{

Callers

nothing calls this directly

Calls 2

lua_pushnilFunction · 0.85
PushFunction · 0.85

Tested by

no test coverage detected