mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added "width= and height=" to symbols exported to html;
Added a backtrace function to the script evaluator, error messages now include a 'stack trace' of functions that were called. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@446 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -153,6 +153,13 @@ class Script : public ScriptValue {
|
||||
/// Constant values that can be referred to from the script
|
||||
vector<ScriptValueP> constants;
|
||||
|
||||
/// Do a backtrace for error messages.
|
||||
/** Starting from instr, move backwards until the nett stack effect
|
||||
* of the skipped instructions is equal to_skip.
|
||||
* If the backtrace fails, returns nullptr
|
||||
*/
|
||||
const Instruction* backtraceSkip(const Instruction* instr, int to_skip) const;
|
||||
|
||||
friend class Context;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user