MCPcopy Create free account
hub / github.com/covscript/covscript / structure>

Method structure>

include/covscript/impl/type_ext.hpp:594–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 5

invokeFunction · 0.85
type_nameMethod · 0.80
existMethod · 0.45
to_stringMethod · 0.45
fcallMethod · 0.45

Tested by

no test coverage detected