diff options
| author | Juan Linietsky | 2015-06-30 11:28:43 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-06-30 11:28:43 -0300 |
| commit | 55b34e05b3d735a84e1af9833e19c0b816c18252 (patch) | |
| tree | a2e5e0020bf68a2b3ea66010dfe5f54b83403d7b /drivers/unix/os_unix.cpp | |
| parent | 95047562d743b1c1fdc007432c8a0c145a455c5d (diff) | |
| download | godot-55b34e05b3d735a84e1af9833e19c0b816c18252.tar.gz godot-55b34e05b3d735a84e1af9833e19c0b816c18252.tar.zst godot-55b34e05b3d735a84e1af9833e19c0b816c18252.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 8ba56490d..f6d9e0fb4 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -57,8 +57,14 @@ #include <errno.h> #include <assert.h> #include "globals.h" + +extern bool _print_error_enabled; + void OS_Unix::print_error(const char* p_function,const char* p_file,int p_line,const char *p_code,const char*p_rationale,ErrorType p_type) { + if (!_print_error_enabled) + return; + if (p_rationale && p_rationale[0]) { print("\E[1;31;40mERROR: %s: \E[1;37;40m%s\n",p_function,p_rationale); |
