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

Function get_world_data

library/LuaApi.cpp:286–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286static PersistentDataItem get_world_data(lua_State *L) {
287 const char *key = lua_tostring(L, 1);
288 if (!key)
289 luaL_argerror(L, 1, "no key specified");
290
291 return World::GetPersistentWorldData(key);
292}
293
294static int dfhack_persistent_get_data_string(lua_State *L, get_data_fn get_data) {
295 CoreSuspender suspend;

Callers

nothing calls this directly

Calls 1

luaL_argerrorFunction · 0.85

Tested by

no test coverage detected