| 284 | } |
| 285 | |
| 286 | static 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 | |
| 294 | static int dfhack_persistent_get_data_string(lua_State *L, get_data_fn get_data) { |
| 295 | CoreSuspender suspend; |
nothing calls this directly
no test coverage detected