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

Function AddStringFloat

sdk/tests/test_performance/source/scriptstring.cpp:413–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413static CScriptString *AddStringFloat(const CScriptString &str, float f)
414{
415 char buf[100];
416#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
417 sprintf_s(buf, 100, "%g", f);
418#else
419 sprintf(buf, "%g", f);
420#endif
421 return new CScriptString(str.buffer + buf);
422}
423
424static void AddStringFloat_Generic(asIScriptGeneric *gen)
425{

Callers 1

AddStringFloat_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected