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

Function AddString2IntGeneric

sdk/tests/test_feature/source/test_compiler.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static void AddString2IntGeneric(asIScriptGeneric * gen) {
105 string * a = static_cast<string *>(gen->GetObject());
106 int * b = static_cast<int *>(gen->GetAddressOfArg(0));
107 std::stringstream sstr;
108 sstr << *a << *b;
109 std::string ret_val = sstr.str();
110 gen->SetReturnObject(&ret_val);
111}
112
113static string alert_buf;
114static void AlertGeneric(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