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

Function StringLengthGeneric

sdk/tests/test_feature/source/test_compiler.cpp:99–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static void StringLengthGeneric(asIScriptGeneric * gen) {
100 string * self = static_cast<string *>(gen->GetObject());
101 *static_cast<asUINT *>(gen->GetAddressOfReturnLocation()) = (asUINT)self->length();
102}
103
104static void AddString2IntGeneric(asIScriptGeneric * gen) {
105 string * a = static_cast<string *>(gen->GetObject());

Callers

nothing calls this directly

Calls 3

GetObjectMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected