summaryrefslogtreecommitdiffstats
path: root/core/print_string.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-11-17 16:05:44 -0300
committerGitHub <noreply@github.com>2017-11-17 16:05:44 -0300
commitebbe2bd57235fcbd2edb82c05bb9d7d768b3e7ca (patch)
tree8525dd572373c91efe33568f3c1a8663c0ed8d1a /core/print_string.h
parent0968c8d2f65f7ac6e0d6b3718ee1028b229b3353 (diff)
parentb96ee28acd80230ee56000fad2a3ca15e461d5e2 (diff)
downloadredot-engine-ebbe2bd57235fcbd2edb82c05bb9d7d768b3e7ca.tar.gz
Merge pull request #12930 from vnen/gdscrit-output-print
Make tool scripts print on the editor Output panel
Diffstat (limited to 'core/print_string.h')
-rw-r--r--core/print_string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/print_string.h b/core/print_string.h
index 9f8420c31a..6b68380b9d 100644
--- a/core/print_string.h
+++ b/core/print_string.h
@@ -34,7 +34,7 @@
extern void (*_print_func)(String);
-typedef void (*PrintHandlerFunc)(void *, const String &p_string);
+typedef void (*PrintHandlerFunc)(void *, const String &p_string, bool p_error);
struct PrintHandlerList {
@@ -56,5 +56,6 @@ void remove_print_handler(PrintHandlerList *p_handler);
extern bool _print_line_enabled;
extern bool _print_error_enabled;
extern void print_line(String p_string);
+extern void print_error(String p_string);
#endif