diff options
author | Willem Jan Palenstijn | 2017-05-26 12:36:20 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2017-06-10 21:32:35 +0200 |
commit | 1e5c965a2bf038193af93663bfe99d65a4b0f7cc (patch) | |
tree | 48a6abe383bec290726baedc0bb925a6b122597f /engines/sci/engine/scriptdebug.h | |
parent | 3554875c7a583f03aea0c8192b8c0b53b76ddde7 (diff) | |
download | scummvm-rg350-1e5c965a2bf038193af93663bfe99d65a4b0f7cc.tar.gz scummvm-rg350-1e5c965a2bf038193af93663bfe99d65a4b0f7cc.tar.bz2 scummvm-rg350-1e5c965a2bf038193af93663bfe99d65a4b0f7cc.zip |
SCI: Move scriptdebug declarations to separate header
Diffstat (limited to 'engines/sci/engine/scriptdebug.h')
-rw-r--r-- | engines/sci/engine/scriptdebug.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/engines/sci/engine/scriptdebug.h b/engines/sci/engine/scriptdebug.h new file mode 100644 index 0000000000..15e71343de --- /dev/null +++ b/engines/sci/engine/scriptdebug.h @@ -0,0 +1,38 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef SCI_ENGINE_SCRIPTDEBUG_H +#define SCI_ENGINE_SCRIPTDEBUG_H + +namespace Sci { + +#ifndef REDUCE_MEMORY_USAGE +extern const char *opcodeNames[]; +#endif + +void debugSelectorCall(reg_t send_obj, Selector selector, int argc, StackPtr argp, ObjVarRef &varp, reg_t funcp, SegManager *segMan, SelectorType selectorType); + +void logKernelCall(const KernelFunction *kernelCall, const KernelSubFunction *kernelSubCall, EngineState *s, int argc, reg_t *argv, reg_t result); + +} + +#endif |