| 510 | } |
| 511 | |
| 512 | static 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 | |
| 523 | static void AddFloatString_Generic(asIScriptGeneric *gen) |
| 524 | { |
no outgoing calls
no test coverage detected