MCPcopy Create free account
hub / github.com/anjo76/angelscript / AddString2BoolGeneric

Function AddString2BoolGeneric

sdk/add_on/scriptstdstring/scriptstdstring.cpp:1444–1452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1442}
1443
1444static void AddString2BoolGeneric(asIScriptGeneric * gen)
1445{
1446 string * a = static_cast<string *>(gen->GetObject());
1447 bool * b = static_cast<bool *>(gen->GetAddressOfArg(0));
1448 std::stringstream sstr;
1449 sstr << *a << (*b ? "true" : "false");
1450 std::string ret_val = sstr.str();
1451 gen->SetReturnObject(&ret_val);
1452}
1453
1454static void AddDouble2StringGeneric(asIScriptGeneric * gen)
1455{

Callers

nothing calls this directly

Calls 4

GetObjectMethod · 0.80
strMethod · 0.80
SetReturnObjectMethod · 0.80
GetAddressOfArgMethod · 0.45

Tested by

no test coverage detected