From eb481198218399c9f86e5bfe1879757e1aa9a86e Mon Sep 17 00:00:00 2001 From: George Marques Date: Sun, 1 Jul 2018 13:17:40 -0300 Subject: Added system for GDScript warnings - Count and panel per script. - Ability to disable warnings per script using special comments. - Ability to disable warnings globally using Project Settings. - Option to treat enabled warnings as errors. --- core/script_language.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core/script_language.h') diff --git a/core/script_language.h b/core/script_language.h index 4e81b9b626..71d550d404 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -207,13 +207,20 @@ public: virtual void finish() = 0; /* EDITOR FUNCTIONS */ + struct Warning { + int line; + int code; + String string_code; + String message; + }; + virtual void get_reserved_words(List *p_words) const = 0; virtual void get_comment_delimiters(List *p_delimiters) const = 0; virtual void get_string_delimiters(List *p_delimiters) const = 0; virtual Ref