diff options
author | Neil Roberts <neil@linux.intel.com> | 2011-10-31 14:19:10 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2011-11-16 16:21:31 +0000 |
commit | f4c1ba9ed9f1555f7a6dbd5bbd84f7b936019ead (patch) | |
tree | f7f489002655865643f1d215563d7596e8642586 /cogl/cogl-debug.h | |
parent | 2ba4fe417acb0352e6eca0e1f61627975c9716e3 (diff) | |
download | cogl-f4c1ba9ed9f1555f7a6dbd5bbd84f7b936019ead.tar.gz |
cogl-flags: Use longs instead of ints
Previously cogl-flags was using an array of ints to store the
flags. There was a comment saying that it would be nice to use longs
but this is awkward because g_parse_debug_flags can only work in
ints. This is a silly reason not to use longs because we can just
parse multiple sets of flags per long. This patch therefore changes
cogl-flags to use longs and tweaks the debug key parsing code.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-debug.h')
-rw-r--r-- | cogl/cogl-debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h index 3c8c73ae..901850f7 100644 --- a/cogl/cogl-debug.h +++ b/cogl/cogl-debug.h @@ -72,9 +72,9 @@ typedef enum { #ifdef COGL_ENABLE_DEBUG -#define COGL_DEBUG_N_INTS COGL_FLAGS_N_INTS_FOR_SIZE (COGL_DEBUG_N_FLAGS) +#define COGL_DEBUG_N_LONGS COGL_FLAGS_N_LONGS_FOR_SIZE (COGL_DEBUG_N_FLAGS) -extern unsigned int _cogl_debug_flags[COGL_DEBUG_N_INTS]; +extern unsigned long _cogl_debug_flags[COGL_DEBUG_N_LONGS]; extern GHashTable *_cogl_debug_instances; #define COGL_DEBUG_ENABLED(flag) \ |