diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-07 13:47:51 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-07 13:47:51 +0100 |
commit | fccceb8736ee4d49c5b0ce6d9940183355d5d751 (patch) | |
tree | ba8698eaf6226243ee1873e4989b40504dbddb23 /gdextension/gdextension_interface.h | |
parent | f2b97528c1369a6c40f3749817d00e4633afc43e (diff) | |
parent | 6b92eda819ca1deb2cf09216b0cfaceb7fabb4d9 (diff) | |
download | redot-cpp-fccceb8736ee4d49c5b0ce6d9940183355d5d751.tar.gz |
Merge pull request #1011 from mihe/error-macros
Update error macros to match core
Diffstat (limited to 'gdextension/gdextension_interface.h')
-rw-r--r-- | gdextension/gdextension_interface.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdextension/gdextension_interface.h b/gdextension/gdextension_interface.h index 876a09b..3807c17 100644 --- a/gdextension/gdextension_interface.h +++ b/gdextension/gdextension_interface.h @@ -415,9 +415,12 @@ typedef struct { void *(*mem_realloc)(void *p_ptr, size_t p_bytes); void (*mem_free)(void *p_ptr); - void (*print_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line); - void (*print_warning)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line); - void (*print_script_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line); + void (*print_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, bool p_editor_notify); + void (*print_error_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, bool p_editor_notify); + void (*print_warning)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, bool p_editor_notify); + void (*print_warning_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, bool p_editor_notify); + void (*print_script_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, bool p_editor_notify); + void (*print_script_error_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, bool p_editor_notify); uint64_t (*get_native_struct_size)(GDExtensionConstStringNamePtr p_name); |