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

Function AddBool2StringGeneric

sdk/add_on/scriptstdstring/scriptstdstring.cpp:1494–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1492}
1493
1494static void AddBool2StringGeneric(asIScriptGeneric * gen)
1495{
1496 bool* a = static_cast<bool *>(gen->GetAddressOfArg(0));
1497 string * b = static_cast<string *>(gen->GetObject());
1498 std::stringstream sstr;
1499 sstr << (*a ? "true" : "false") << *b;
1500 std::string ret_val = sstr.str();
1501 gen->SetReturnObject(&ret_val);
1502}
1503#endif
1504
1505static void StringSubString_Generic(asIScriptGeneric *gen)

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