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

Function AddStringBool

sdk/tests/test_performance/source/scriptstring.cpp:451–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451static CScriptString *AddStringBool(const CScriptString &str, bool b)
452{
453 char buf[100];
454#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
455 sprintf_s(buf, 100, "%s", b ? "true" : "false");
456#else
457 sprintf(buf, "%s", b ? "true" : "false");
458#endif
459 return new CScriptString(str.buffer + buf);
460}
461
462static void AddStringBool_Generic(asIScriptGeneric *gen)
463{

Callers 1

AddStringBool_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected