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

Function StringAddGeneric

sdk/tests/test_feature/source/test_compiler.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static void StringAddGeneric(asIScriptGeneric * gen) {
93 string * a = static_cast<string *>(gen->GetObject());
94 string * b = static_cast<string *>(gen->GetArgAddress(0));
95 string ret_val = *a + *b;
96 gen->SetReturnObject(&ret_val);
97}
98
99static void StringLengthGeneric(asIScriptGeneric * gen) {
100 string * self = static_cast<string *>(gen->GetObject());

Callers

nothing calls this directly

Calls 3

GetObjectMethod · 0.80
GetArgAddressMethod · 0.80
SetReturnObjectMethod · 0.80

Tested by

no test coverage detected