[gnome-games] [libgames-support] Remove assertion that ensures Card fits in one byte
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] [libgames-support] Remove assertion that ensures Card fits in one byte
- Date: Thu, 16 Jul 2009 22:28:45 +0000 (UTC)
commit 8a51d6d905391500c0bc9d80f42c8c85eb6ae5b6
Author: Tim Horton <hortont svn gnome org>
Date: Thu Jun 11 17:29:45 2009 -0400
[libgames-support] Remove assertion that ensures Card fits in one byte
This is temporary, but necessary, because it breaks g-ir-scanner. I'm not
sure what to do in order to fix it, or if it's actually necessary, or (best-case)
if there's a way to #ifdef things out specifically for the scanner.
libgames-support/games-card.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgames-support/games-card.h b/libgames-support/games-card.h
index 5945183..748f0ce 100644
--- a/libgames-support/games-card.h
+++ b/libgames-support/games-card.h
@@ -51,7 +51,8 @@ typedef union {
} attr;
} GNOME_GAMES_GNUC_PACKED Card;
-typedef int _games_card_size_assert[sizeof (Card) == sizeof (guint8) ? 1 : -1]; /* static assertion */
+// FIXME: not even remotely introspectable
+//typedef int _games_card_size_assert[sizeof (Card) == sizeof (guint8) ? 1 : -1]; /* static assertion */
#define CARD(c) ((Card) c)
#define CARD_UINT(c) (c.value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]