summaryrefslogtreecommitdiffstats
path: root/core/error/error_macros.h
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2024-02-03 21:41:00 -0600
committerAaron Franke <arnfranke@yahoo.com>2024-02-04 02:58:29 -0600
commit2d38c980ee91bae816fd84e6cffb779c291ab089 (patch)
treeea7fc247b0306cd0fc6d7dda9a0a5dc197e5448c /core/error/error_macros.h
parentb4e2a24c1f62088b3f7ce0197afc90832fc25009 (diff)
downloadredot-engine-2d38c980ee91bae816fd84e6cffb779c291ab089.tar.gz
Fix GLTF exporting invalid meshes and attempting to export gizmo meshes
Diffstat (limited to 'core/error/error_macros.h')
-rw-r--r--core/error/error_macros.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/error/error_macros.h b/core/error/error_macros.h
index 016c963e04..ab7dbcbd44 100644
--- a/core/error/error_macros.h
+++ b/core/error/error_macros.h
@@ -730,6 +730,16 @@ void _err_flush_stdout();
} else \
((void)0)
+/**
+ * Warns about `m_msg` only when verbose mode is enabled.
+ */
+#define WARN_VERBOSE(m_msg) \
+ { \
+ if (is_print_verbose_enabled()) { \
+ WARN_PRINT(m_msg); \
+ } \
+ }
+
// Print deprecated warning message macros.
/**