summaryrefslogtreecommitdiff
path: root/modules/gdnative/include/pluginscript/godot_pluginscript.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-20 00:38:49 +0200
committerGitHub <noreply@github.com>2021-06-20 00:38:49 +0200
commit9b7c963d19cc0df53792d33b127f7a7356996030 (patch)
treeeb6e15b1c69ed40cc7e6d1ea38fd7682a1abbc6b /modules/gdnative/include/pluginscript/godot_pluginscript.h
parentde7293b6eb6f45b44b3467fe25e2a0b6f403ebef (diff)
parentd0e78c86d72de1ec5d1c49de5c5ee2fff9589efc (diff)
Merge pull request #48804 from EricEzaM/scripting-multi-error-support
Added support for scripts reporting multiple errors to ScriptTextEditor
Diffstat (limited to 'modules/gdnative/include/pluginscript/godot_pluginscript.h')
-rw-r--r--modules/gdnative/include/pluginscript/godot_pluginscript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/include/pluginscript/godot_pluginscript.h b/modules/gdnative/include/pluginscript/godot_pluginscript.h
index 34ed4f097d..02ee4066d0 100644
--- a/modules/gdnative/include/pluginscript/godot_pluginscript.h
+++ b/modules/gdnative/include/pluginscript/godot_pluginscript.h
@@ -132,7 +132,7 @@ typedef struct {
godot_bool can_inherit_from_file;
godot_string (*get_template_source_code)(godot_pluginscript_language_data *p_data, const godot_string *p_class_name, const godot_string *p_base_class_name);
- godot_bool (*validate)(godot_pluginscript_language_data *p_data, const godot_string *p_script, int *r_line_error, int *r_col_error, godot_string *r_test_error, const godot_string *p_path, godot_packed_string_array *r_functions);
+ godot_bool (*validate)(godot_pluginscript_language_data *p_data, const godot_string *p_script, const godot_string *p_path, godot_packed_string_array *r_functions, godot_array *r_errors); // errors = Array of Dictionary with "line", "column", "message" keys
int (*find_function)(godot_pluginscript_language_data *p_data, const godot_string *p_function, const godot_string *p_code); // Can be nullptr
godot_string (*make_function)(godot_pluginscript_language_data *p_data, const godot_string *p_class, const godot_string *p_name, const godot_packed_string_array *p_args);
godot_error (*complete_code)(godot_pluginscript_language_data *p_data, const godot_string *p_code, const godot_string *p_path, godot_object *p_owner, godot_array *r_options, godot_bool *r_force, godot_string *r_call_hint);