Internal execute for global function which does not save the stack
| 1492 | |
| 1493 | // Internal execute for global function which does not save the stack |
| 1494 | ConsoleValueRef _internalExecute(S32 argc, ConsoleValueRef argv[]) |
| 1495 | { |
| 1496 | Namespace::Entry *ent; |
| 1497 | StringTableEntry funcName = StringTable->insert(argv[0]); |
| 1498 | ent = Namespace::global()->lookup(funcName); |
| 1499 | |
| 1500 | if(!ent) |
| 1501 | { |
| 1502 | warnf(ConsoleLogEntry::Script, "%s: Unknown command.", (const char*)argv[0]); |
| 1503 | |
| 1504 | STR.clearFunctionOffset(); |
| 1505 | return ConsoleValueRef(); |
| 1506 | } |
| 1507 | return ent->execute(argc, argv, &gEvalState); |
| 1508 | } |
| 1509 | |
| 1510 | ConsoleValueRef execute(S32 argc, ConsoleValueRef argv[]) |
| 1511 | { |
no test coverage detected