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

Function AddStringInt

sdk/tests/test_performance/source/scriptstring.cpp:394–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394static CScriptString *AddStringInt(const CScriptString &str, int i)
395{
396 char buf[100];
397#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
398 sprintf_s(buf, 100, "%d", i);
399#else
400 sprintf(buf, "%d", i);
401#endif
402 return new CScriptString(str.buffer + buf);
403}
404
405static void AddStringInt_Generic(asIScriptGeneric *gen)
406{

Callers 1

AddStringInt_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected