------------------------------------------------------------------------------
| 1475 | |
| 1476 | //------------------------------------------------------------------------------ |
| 1477 | ConsoleValueRef evaluatef(const char* string, ...) |
| 1478 | { |
| 1479 | ConsoleStackFrameSaver stackSaver; |
| 1480 | stackSaver.save(); |
| 1481 | |
| 1482 | char buffer[4096]; |
| 1483 | va_list args; |
| 1484 | va_start(args, string); |
| 1485 | dVsprintf(buffer, sizeof(buffer), string, args); |
| 1486 | va_end(args); |
| 1487 | CodeBlock *newCodeBlock = new CodeBlock(); |
| 1488 | return newCodeBlock->compileExec(NULL, buffer, false, 0); |
| 1489 | } |
| 1490 | |
| 1491 | //------------------------------------------------------------------------------ |
| 1492 |
no test coverage detected