| 449 | } |
| 450 | |
| 451 | static CScriptString *AddStringBool(const CScriptString &str, bool b) |
| 452 | { |
| 453 | char buf[100]; |
| 454 | #if _MSC_VER >= 1400 // MSVC 8.0 / 2005 |
| 455 | sprintf_s(buf, 100, "%s", b ? "true" : "false"); |
| 456 | #else |
| 457 | sprintf(buf, "%s", b ? "true" : "false"); |
| 458 | #endif |
| 459 | return new CScriptString(str.buffer + buf); |
| 460 | } |
| 461 | |
| 462 | static void AddStringBool_Generic(asIScriptGeneric *gen) |
| 463 | { |
no outgoing calls
no test coverage detected