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

Function AddStringDouble

sdk/tests/test_feature/source/scriptstring.cpp:432–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432static CScriptString *AddStringDouble(const CScriptString &str, double f)
433{
434 char buf[100];
435#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
436 sprintf_s(buf, 100, "%g", f);
437#else
438 sprintf(buf, "%g", f);
439#endif
440 return new CScriptString(str.buffer + buf);
441}
442
443static void AddStringDouble_Generic(asIScriptGeneric *gen)
444{

Callers 1

AddStringDouble_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected