summaryrefslogtreecommitdiff
path: root/core/core_bind.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-05-01 23:09:48 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-05-01 23:11:08 +0200
commit0eb9b414c13a67203b0d1cc5bd878afe63d3676b (patch)
treedaa264c3bb88191dc890cb39f957f48d221220cb /core/core_bind.h
parent33a0fb6e02ce9ee5d2fe97377a3ec84591b59f7c (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.h3
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; }
};