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

Function AddDoubleString

sdk/tests/test_feature/source/scriptstring.cpp:531–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529}
530
531static CScriptString *AddDoubleString(double f, const CScriptString &str)
532{
533 char buf[100];
534#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
535 sprintf_s(buf, 100, "%g", f);
536#else
537 sprintf(buf, "%g", f);
538#endif
539 return new CScriptString(buf + str.buffer);
540}
541
542static void AddDoubleString_Generic(asIScriptGeneric *gen)
543{

Callers 1

AddDoubleString_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected