From 1d12470a78d31a054aefc7f7c9a863db24b09986 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 14 Nov 2017 20:01:45 -0200 Subject: Add print_error function, akin to print_line --- core/print_string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/print_string.h') diff --git a/core/print_string.h b/core/print_string.h index 9f8420c31..6b68380b9 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 -- cgit v1.2.3-70-g09d2