[gtk/wip/baedert/for-master: 15/29] gtkprivate: Only define gtk_internal_return_if* for consistency checks
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 15/29] gtkprivate: Only define gtk_internal_return_if* for consistency checks
- Date: Fri, 23 Aug 2019 07:54:34 +0000 (UTC)
commit 75590200dc610f1a213295c0ca22ad21d453ec6e
Author: Timm Bäder <mail baedert org>
Date: Mon Aug 19 10:54:09 2019 +0200
gtkprivate: Only define gtk_internal_return_if* for consistency checks
The wanted behavior here is that these are only defined if the buildtype
is debug, i.e. full debugging.
gtk/gtkprivate.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index 81f9068693..2732f064c8 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -40,12 +40,12 @@ G_BEGIN_DECLS
#define OPPOSITE_ORIENTATION(_orientation) (1 - (_orientation))
-#ifdef G_DISABLE_CAST_CHECKS
-/* This is true for debug no and minimum */
+#ifndef G_ENABLE_CONSISTENCY_CHECKS
+/* This is true for buildtypes release and debugoptimized */
#define gtk_internal_return_if_fail(__expr) G_STMT_START{ (void)0; }G_STMT_END
#define gtk_internal_return_val_if_fail(__expr, __val) G_STMT_START{ (void)0; }G_STMT_END
#else
-/* This is true for debug yes */
+/* This is true for debug builds */
#define gtk_internal_return_if_fail(__expr) g_return_if_fail(__expr)
#define gtk_internal_return_val_if_fail(__expr, __val) g_return_val_if_fail(__expr, __val)
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]