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

Function AddFloat2StringGeneric

sdk/add_on/scriptstdstring/scriptstdstring.cpp:1464–1472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1462}
1463
1464static void AddFloat2StringGeneric(asIScriptGeneric * gen)
1465{
1466 float* a = static_cast<float *>(gen->GetAddressOfArg(0));
1467 string * b = static_cast<string *>(gen->GetObject());
1468 std::stringstream sstr;
1469 sstr << *a << *b;
1470 std::string ret_val = sstr.str();
1471 gen->SetReturnObject(&ret_val);
1472}
1473
1474static void AddInt2StringGeneric(asIScriptGeneric * gen)
1475{

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