| 1966 | } |
| 1967 | |
| 1968 | void 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 | |
| 1989 | int idGameEditExt::GetInterpreterCallStackDepth(const idInterpreter* interpreter) |
no test coverage detected