25 #include "common/stream.h" 26 #include "common/array.h" 27 #include "common/func.h" 28 #include "common/formats/iff_container.h" 50 kStackLastEntry = kStackSize - 1
59 int16 stack[kStackSize];
63 #define stackPos(x) (script->stack[script->sp+x]) 65 #define stackPos(x) emcSafeReadStack(script, x, __LINE__, __FILE__) 67 #define safeStackPos(x) (script->sp+x < EMCState::kStackSize ? stackPos(x) : 0) 68 #define stackPosString(x) ((const char *)&script->dataPtr->text[READ_BE_UINT16(&script->dataPtr->text[stackPos(x)<<1])]) 104 _formChunk.size = (_formChunk.size + 1) & ~1;
106 if (_formType ==
MKTAG(
'E',
'M',
'C',
'2'))
107 _formChunk.size -= 8;
108 else if (_formType ==
MKTAG(
'A',
'V',
'F',
'S'))
109 _formChunk.size += 4;
121 bool start(
EMCState *script,
int function);
130 const char *_filename;
Definition: resource.h:48
Definition: kyra_v1.h:126
Definition: iff_container.h:173
Definition: detection.h:27
#define MKTAG(a0, a1, a2, a3)
Definition: endian.h:188
Definition: iff_container.h:160