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

Function AddIntString

sdk/tests/test_performance/source/scriptstring.cpp:474–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472//----------------
473
474static CScriptString *AddIntString(int i, const CScriptString &str)
475{
476 char buf[100];
477#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
478 sprintf_s(buf, 100, "%d", i);
479#else
480 sprintf(buf, "%d", i);
481#endif
482 return new CScriptString(buf + str.buffer);
483}
484
485static void AddIntString_Generic(asIScriptGeneric *gen)
486{

Callers 1

AddIntString_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected