diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-01 23:09:48 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-01 23:11:08 +0200 |
commit | 0eb9b414c13a67203b0d1cc5bd878afe63d3676b (patch) | |
tree | daa264c3bb88191dc890cb39f957f48d221220cb /core/core_bind.h | |
parent | 33a0fb6e02ce9ee5d2fe97377a3ec84591b59f7c (diff) |
Add `Engine.print_error_messages` property to disable printing errors
This can be used during unit test suite runs to hide error and warning
messages.
Care should be taken when using this feature, as it can hide important
information if used wrongly.
Diffstat (limited to 'core/core_bind.h')
-rw-r--r-- | core/core_bind.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/core_bind.h b/core/core_bind.h index 3920116ca4..9fc9e8a39e 100644 --- a/core/core_bind.h +++ b/core/core_bind.h @@ -660,6 +660,9 @@ public: void set_editor_hint(bool p_enabled); bool is_editor_hint() const; + void set_print_error_messages(bool p_enabled); + bool is_printing_error_messages() const; + _Engine() { singleton = this; } }; |