| 411 | } |
| 412 | |
| 413 | static 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 | |
| 424 | static void AddStringFloat_Generic(asIScriptGeneric *gen) |
| 425 | { |
no outgoing calls
no test coverage detected