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

Function AddString2IntGeneric

sdk/add_on/scriptstdstring/scriptstdstring.cpp:1424–1432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422}
1423
1424static void AddString2IntGeneric(asIScriptGeneric * gen)
1425{
1426 string * a = static_cast<string *>(gen->GetObject());
1427 asINT64 * b = static_cast<asINT64 *>(gen->GetAddressOfArg(0));
1428 std::stringstream sstr;
1429 sstr << *a << *b;
1430 std::string ret_val = sstr.str();
1431 gen->SetReturnObject(&ret_val);
1432}
1433
1434static void AddString2UIntGeneric(asIScriptGeneric * gen)
1435{

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