| 415 | } |
| 416 | |
| 417 | string 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 | |
| 435 | map_marker *map_lua_marker::parse(const string &s, const string &ctx) |
| 436 | { |
no test coverage detected