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

Function AddBoolString

sdk/tests/test_feature/source/scriptstring.cpp:550–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550static CScriptString *AddBoolString(bool b, const CScriptString &str)
551{
552 char buf[100];
553#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
554 sprintf_s(buf, 100, "%s", b ? "true" : "false");
555#else
556 sprintf(buf, "%s", b ? "true" : "false");
557#endif
558 return new CScriptString(buf + str.buffer);
559}
560
561static void AddBoolString_Generic(asIScriptGeneric *gen)
562{

Callers 1

AddBoolString_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected