Merge branch 'upstream' into tizen
[platform/upstream/glib.git] / glib / gtestutils.h
index f5202ac..31f5ee5 100644 (file)
@@ -226,6 +226,7 @@ typedef void (*GTestFixtureFunc) (gpointer      fixture,
 #endif
 
 #define g_assert(expr)                  G_STMT_START { (void) 0; } G_STMT_END
+#define g_assert_se(expr)               ((void) (expr))
 #else /* !G_DISABLE_ASSERT */
 #define g_assert_not_reached()          G_STMT_START { g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); } G_STMT_END
 #define g_assert(expr)                  G_STMT_START { \
@@ -233,6 +234,7 @@ typedef void (*GTestFixtureFunc) (gpointer      fixture,
                                                g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \
                                                                          #expr); \
                                         } G_STMT_END
+#define g_assert_se(expr)               g_assert((expr))
 #endif /* !G_DISABLE_ASSERT */
 
 GLIB_AVAILABLE_IN_ALL