MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ThreadCall

Method ThreadCall

neo/d3xp/script/Script_Interpreter.cpp:550–562  ·  view source on GitHub ↗

==================== idInterpreter::ThreadCall Copys the args from the calling thread's stack ==================== */

Source from the content-addressed store, hash-verified

548====================
549*/
550void 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================

Callers 1

idThreadMethod · 0.45

Calls 2

SetThreadNameMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected