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

Method debug_to_string

crawl-ref/source/mapmark.cc:417–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417string map_lua_marker::debug_to_string() const
418{
419 lua_stack_cleaner cln(dlua);
420
421 if (!get_table())
422 return "Unable to get table for lua marker.";
423
424 if (!dlua.callfn("table_to_string", 1, 1))
425 return make_stringf("error (table_to_string): %s", dlua.error.c_str());
426
427 string result;
428 if (lua_isstring(dlua, -1))
429 result = lua_tostring(dlua, -1);
430 else
431 result = "table_to_string() returned nothing";
432 return result;
433}
434
435map_marker *map_lua_marker::parse(const string &s, const string &ctx)
436{

Callers 1

_debug_dump_lua_markersFunction · 0.80

Calls 2

make_stringfFunction · 0.85
callfnMethod · 0.45

Tested by

no test coverage detected