| 592 | |
| 593 | template <> |
| 594 | cs::string_borrower to_string<cs::structure>(const cs::structure &stut) |
| 595 | { |
| 596 | if (stut.get_domain().exist("to_string")) { |
| 597 | cs::var func = stut.get_domain().get_var("to_string"); |
| 598 | if (func.is_type_of<cs::callable>()) |
| 599 | return cs::invoke(func, cs::var::make<cs::structure>(&stut)).to_string(); |
| 600 | } |
| 601 | return "[cs::structure_" + stut.type_name() + "]"; |
| 602 | } |
| 603 | |
| 604 | template <> |
| 605 | cs::string_borrower to_string<cs::char_buff>(const cs::char_buff &buff) |