==================== idInterpreter::ThreadCall Copys the args from the calling thread's stack ==================== */
| 548 | ==================== |
| 549 | */ |
| 550 | void idInterpreter::ThreadCall( idInterpreter *source, const function_t *func, int args ) { |
| 551 | Reset(); |
| 552 | |
| 553 | memcpy( localstack, &source->localstack[ source->localstackUsed - args ], args ); |
| 554 | |
| 555 | localstackUsed = args; |
| 556 | localstackBase = 0; |
| 557 | |
| 558 | maxLocalstackUsed = localstackUsed; |
| 559 | EnterFunction( func, false ); |
| 560 | |
| 561 | thread->SetThreadName( currentFunction->Name() ); |
| 562 | } |
| 563 | |
| 564 | /* |
| 565 | ================ |
no test coverage detected