| 548 | } |
| 549 | |
| 550 | static CScriptString *AddBoolString(bool b, const CScriptString &str) |
| 551 | { |
| 552 | char buf[100]; |
| 553 | #if _MSC_VER >= 1400 // MSVC 8.0 / 2005 |
| 554 | sprintf_s(buf, 100, "%s", b ? "true" : "false"); |
| 555 | #else |
| 556 | sprintf(buf, "%s", b ? "true" : "false"); |
| 557 | #endif |
| 558 | return new CScriptString(buf + str.buffer); |
| 559 | } |
| 560 | |
| 561 | static void AddBoolString_Generic(asIScriptGeneric *gen) |
| 562 | { |
no outgoing calls
no test coverage detected