MCPcopy Create free account
hub / github.com/crawl/crawl / check_register_table

Method check_register_table

crawl-ref/source/mapmark.cc:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void map_lua_marker::check_register_table()
231{
232 if (!lua_istable(dlua, -1))
233 {
234 mprf(MSGCH_ERROR, "lua_marker: Expected table, didn't get it.");
235 initialised = false;
236 return;
237 }
238
239 // Got a table. Save it in the registry.
240 marker_table.reset(new lua_datum(dlua));
241 initialised = true;
242}
243
244bool map_lua_marker::get_table() const
245{

Callers 1

cloneMethod · 0.80

Calls 2

mprfFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected