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

Function AddFloatString

sdk/tests/test_feature/source/scriptstring.cpp:512–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512static CScriptString *AddFloatString(float f, const CScriptString &str)
513{
514 char buf[100];
515#if _MSC_VER >= 1400 // MSVC 8.0 / 2005
516 sprintf_s(buf, 100, "%g", f);
517#else
518 sprintf(buf, "%g", f);
519#endif
520 return new CScriptString(buf + str.buffer);
521}
522
523static void AddFloatString_Generic(asIScriptGeneric *gen)
524{

Callers 1

AddFloatString_GenericFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected