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

Function textures_deleteHandle

library/LuaApi.cpp:2082–2095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2080}
2081
2082static int textures_deleteHandle(lua_State *state)
2083{
2084 if (lua_isinteger(state,1)) {
2085 auto handle = luaL_checkunsigned(state, 1);
2086 Textures::deleteHandle(handle);
2087 } else if (lua_istable(state,1)) {
2088 vector<TexposHandle> handles;
2089 Lua::GetVector(state, handles);
2090 for (auto& handle: handles) {
2091 Textures::deleteHandle(handle);
2092 }
2093 }
2094 return 0;
2095}
2096
2097static int textures_createTile(lua_State *state)
2098{

Callers

nothing calls this directly

Calls 2

lua_isintegerFunction · 0.85
GetVectorFunction · 0.85

Tested by

no test coverage detected