29 #ifndef __SCRIPT_INTERPRETER_H__
30 #define __SCRIPT_INTERPRETER_H__
32 #define MAX_STACK_DEPTH 64
33 #define LOCALSTACK_SIZE 6144
127 Error(
"locals stack underflow\n" );
140 Error(
"Push: locals stack overflow\n" );
153 Error(
"PushString: locals stack overflow\n" );
165 static char text[ 32 ];
167 if ( value == (
float )(
int )value ) {
168 sprintf( text,
"%d", (
int )value );
const function_t * GetCurrentFunction(void) const
byte localstack[LOCALSTACK_SIZE]
GLsizei const GLfloat * value
assert(prefInfo.fullscreenBtn)
GLenum GLsizei GLenum format
idScriptObject scriptObject
void SetString(idVarDef *def, const char *from)
void PushString(const char *string)
void EndMultiFrameEvent(idEntity *ent, const idEventDef *event)
int CurrentLine(void) const
bool MultiFrameEventInProgress(void) const
void AppendString(idVarDef *def, const char *from)
GLsizei GLsizei GLcharARB * source
bool BeginMultiFrameEvent(idEntity *ent, const idEventDef *event)
void void Warning(const char *fmt,...) const id_attribute((format(printf
const idEventDef * multiFrameEvent
const char * FloatToString(float value)
struct prstack_s prstack_t
varEval_t GetVariable(idVarDef *def)
void CallEvent(const function_t *func, int argsize)
void ThreadCall(idInterpreter *source, const function_t *func, int args)
void Error(const char *fmt,...) const id_attribute((format(printf
static void Copynz(char *dest, const char *src, int destsize)
initialized_t initialized
bool GetRegisterValue(const char *name, idStr &out, int scopeDepth)
void Save(idSaveGame *savefile) const
const function_t * currentFunction
const char * GetString(idVarDef *def)
idEntity * entities[MAX_GENTITIES]
idThread * GetThread(void) const
idScriptObject * GetScriptObject(int entnum) const
void CallSysEvent(const function_t *func, int argsize)
void Append(const char a)
void EnterObjectFunction(idEntity *self, const function_t *func, bool clearStack)
void EnterFunction(const function_t *func, bool clearStack)
void void void DisplayInfo(void) const
void NextInstruction(int position)
void StackTrace(void) const
void SetThread(idThread *pThread)
int GetCallstackDepth(void) const
const char * CurrentFile(void) const
idEntity * GetEntity(int entnum) const
void LeaveFunction(idVarDef *returnDef)
void Restore(idRestoreGame *savefile)
const prstack_t * GetCallstack(void) const
int sprintf(idStr &string, const char *fmt,...)
void PopParms(int numParms)
prstack_t callStack[MAX_STACK_DEPTH]