diff options
author | lawnjelly <lawnjelly@gmail.com> | 2022-05-20 13:28:44 +0100 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2022-07-04 12:01:46 +0100 |
commit | b221eab4260c471c37ff2aae2546fcfa6dd7ac58 (patch) | |
tree | bdbf944f69d8a193c5a76160e314cf112ef310f2 /core/string/print_string.cpp | |
parent | 1d06fec5354d45c21414bf4b00435868444636cb (diff) | |
download | redot-engine-b221eab4260c471c37ff2aae2546fcfa6dd7ac58.tar.gz |
Variant memory pools
Memory pools via PagedAllocator for Transform2D, Transform3D, Basis and AABB.
Diffstat (limited to 'core/string/print_string.cpp')
-rw-r--r-- | core/string/print_string.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/string/print_string.cpp b/core/string/print_string.cpp index f58486e0a5..592da58fe7 100644 --- a/core/string/print_string.cpp +++ b/core/string/print_string.cpp @@ -30,13 +30,12 @@ #include "print_string.h" +#include "core/core_globals.h" #include "core/os/os.h" #include <stdio.h> static PrintHandlerList *print_handler_list = nullptr; -bool _print_line_enabled = true; -bool _print_error_enabled = true; void add_print_handler(PrintHandlerList *p_handler) { _global_lock(); @@ -70,7 +69,7 @@ void remove_print_handler(const PrintHandlerList *p_handler) { } void __print_line(String p_string) { - if (!_print_line_enabled) { + if (!CoreGlobals::print_line_enabled) { return; } @@ -87,7 +86,7 @@ void __print_line(String p_string) { } void __print_line_rich(String p_string) { - if (!_print_line_enabled) { + if (!CoreGlobals::print_line_enabled) { return; } @@ -178,7 +177,7 @@ void __print_line_rich(String p_string) { } void print_error(String p_string) { - if (!_print_error_enabled) { + if (!CoreGlobals::print_error_enabled) { return; } |