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

Function AddInt2StringGeneric

sdk/add_on/scriptstdstring/scriptstdstring.cpp:1474–1482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1472}
1473
1474static void AddInt2StringGeneric(asIScriptGeneric * gen)
1475{
1476 asINT64* a = static_cast<asINT64 *>(gen->GetAddressOfArg(0));
1477 string * b = static_cast<string *>(gen->GetObject());
1478 std::stringstream sstr;
1479 sstr << *a << *b;
1480 std::string ret_val = sstr.str();
1481 gen->SetReturnObject(&ret_val);
1482}
1483
1484static void AddUInt2StringGeneric(asIScriptGeneric * gen)
1485{

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