[glib/wip/3v1n0/more-unix-oses: 1/5] glib/tests/macros: Use #error to provide a clearer error on failures
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/3v1n0/more-unix-oses: 1/5] glib/tests/macros: Use #error to provide a clearer error on failures
- Date: Thu, 20 Oct 2022 14:13:04 +0000 (UTC)
commit c3aa3e5e405d323bb29de9d9039184b8db111b1a
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Oct 20 16:07:36 2022 +0200
glib/tests/macros: Use #error to provide a clearer error on failures
glib/tests/macros.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/macros.c b/glib/tests/macros.c
index cbbc0f6def..97d5fcc26e 100644
--- a/glib/tests/macros.c
+++ b/glib/tests/macros.c
@@ -26,10 +26,10 @@
#if defined (__APPLE__) || defined (HAVE_COCOA) || defined (HAVE_CARBON)
# ifndef G_OS_UNIX
- G_STATIC_ASSERT (FALSE);
+ #error "G_OS_UNIX is not defined"
# endif
# ifndef G_OS_DARWIN
- G_STATIC_ASSERT (FALSE);
+ #error "G_OS_DARWIN is not defined"
# endif
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]