diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-09 19:44:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 19:44:10 +0100 |
commit | c037f6339f1fc9636b4fc9056ae0b2e2b673024d (patch) | |
tree | e483dac8a1c4ac409be699b23f49d5bebce95164 /core/script_language.h | |
parent | 958a15c7a7ddf7e4247ea73ce6cc2b63cd0c644b (diff) | |
parent | 1c6269f2dd3e1a46dbb6a36c3363c9c535be8b64 (diff) |
Merge pull request #15463 from neikeq/the-stack-frame-madness
Mono: Implement stack info for errors and exceptions
Diffstat (limited to 'core/script_language.h')
-rw-r--r-- | core/script_language.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/script_language.h b/core/script_language.h index 6bf2129f9b..66614a293c 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -254,7 +254,8 @@ public: virtual String debug_parse_stack_level_expression(int p_level, const String &p_expression, int p_max_subitems = -1, int p_max_depth = -1) = 0; struct StackInfo { - Ref<Script> script; + String file; + String func; int line; }; @@ -391,6 +392,7 @@ public: ScriptLanguage *get_break_language() const; virtual void send_message(const String &p_message, const Array &p_args) = 0; + virtual void send_error(const String &p_func, const String &p_file, int p_line, const String &p_err, const String &p_descr, ErrorHandlerType p_type, const Vector<ScriptLanguage::StackInfo> &p_stack_info) = 0; virtual bool is_remote() const { return false; } virtual void request_quit() {} |