~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to engines/m4/script.h

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-05-25 19:02:23 UTC
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20110525190223-fiqm0oaec714xk31
Tags: upstream-1.3.0
ImportĀ upstreamĀ versionĀ 1.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
 *
21
 
 * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-2-1/engines/m4/script.h $
22
 
 * $Id: script.h 48359 2010-03-22 20:28:08Z fingolfin $
 
21
 * $URL$
 
22
 * $Id$
23
23
 *
24
24
 */
25
25
 
223
223
        uint32 readUint32();
224
224
protected:
225
225
        ScriptInterpreter *_inter;
226
 
        Common::MemoryReadStream *_code;
 
226
        Common::SeekableReadStream *_code;
227
227
};
228
228
 
229
229
struct ScriptFunctionEntry {
305
305
        // Is this ok?
306
306
        template<class T>
307
307
        const T& toData(const ScriptValue &value) {
308
 
                printf("ScriptInterpreter::toData() index = %d; type = %d; max = %d\n", value.value, _data[value.value]->type, _data.size());
 
308
                debugCN(kDebugScript, "ScriptInterpreter::toData() index = %d; type = %d; max = %d\n", value.value, _data[value.value]->type, _data.size());
309
309
                assert((uint32)value.value < _data.size());
310
310
                T *result = 0;
311
311
                _dataCache->load(_scriptFile, _data[value.value]->offset, result);