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

Method MSG_WriteInterpreterInfo

neo/game/script/Script_Interpreter.cpp:1968–1986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1966}
1967
1968void idGameEditExt::MSG_WriteInterpreterInfo(idBitMsg* msg, const idInterpreter* interpreter, const idProgram* program, int instructionPtr)
1969{
1970 int i;
1971 prstack_s temp;
1972
1973 msg->WriteShort((int)interpreter->GetCallstackDepth( ) );
1974
1975 // write out the current function
1976 temp.f = interpreter->GetCurrentFunction( );
1977 temp.s = -1;
1978 temp.stackbase = 0;
1979 MSG_WriteCallstackFunc( msg, &temp, program, instructionPtr);
1980
1981 // Run through all of the callstack and write each to the msg
1982 for (i = interpreter->GetCallstackDepth() - 1; i > 0; i--)
1983 {
1984 MSG_WriteCallstackFunc( msg, interpreter->GetCallstack( ) + i, program, instructionPtr);
1985 }
1986}
1987
1988
1989int idGameEditExt::GetInterpreterCallStackDepth(const idInterpreter* interpreter)

Callers 1

Calls 4

WriteShortMethod · 0.45
GetCallstackDepthMethod · 0.45
GetCurrentFunctionMethod · 0.45
GetCallstackMethod · 0.45

Tested by

no test coverage detected