MCPcopy Create free account
hub / github.com/OpenMW/openmw / toString

Function toString

components/lua/luastate.cpp:450–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448 }
449
450 std::string toString(const sol::object& obj)
451 {
452 if (obj == sol::nil)
453 return "nil";
454 else if (obj.get_type() == sol::type::string)
455 return "\"" + obj.as<std::string>() + "\"";
456 else
457 return call(sol::state_view(obj.lua_state())["tostring"], obj);
458 }
459
460 std::string Internal::formatCastingError(const sol::object& obj, const std::type_info& t)
461 {

Callers 9

formatCastingErrorMethod · 0.70
insertMethod · 0.70
updateMethod · 0.70
parseValueFunction · 0.50
onEditTextChangeMethod · 0.50
setValueMethod · 0.50
onKeyLostFocusMethod · 0.50
loadTrueTypeFontMethod · 0.50
loadBitmapFontMethod · 0.50

Calls 4

callFunction · 0.70
state_viewClass · 0.50
get_typeMethod · 0.45
lua_stateMethod · 0.45

Tested by

no test coverage detected