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

Function AddStringBool_Generic

sdk/tests/test_feature/source/scriptstring.cpp:462–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462static void AddStringBool_Generic(asIScriptGeneric *gen)
463{
464 CScriptString *str = (CScriptString*)gen->GetObject();
465 bool b = gen->GetArgByte(0) ? true : false;
466 CScriptString *out = AddStringBool(*str, b);
467 gen->SetReturnAddress(out);
468}
469
470//----------------
471// value + string

Callers

nothing calls this directly

Calls 4

GetObjectMethod · 0.80
GetArgByteMethod · 0.80
SetReturnAddressMethod · 0.80
AddStringBoolFunction · 0.70

Tested by

no test coverage detected