diff options
author | Carl Worth <cworth@cworth.org> | 2005-05-06 21:33:22 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-05-06 21:33:22 +0000 |
commit | 10c88d424485c7f001e9e03c121aa7c3b55336cc (patch) | |
tree | cea9516a466c2f28bf7f68280cd90003af73448c /src/cairo-hash.c | |
parent | 9939e01b693a885496cfa82430b91c11a121269e (diff) | |
download | cairo-10c88d424485c7f001e9e03c121aa7c3b55336cc.tar.gz |
Change definitions of everything in cairo-features.h to prefer #if over #ifdef.
Track #ifdef -> #if changes.
Add support to automatically change all #ifdef CAIRO_HAS to #if CAIRO_HAS.
Diffstat (limited to 'src/cairo-hash.c')
-rw-r--r-- | src/cairo-hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-hash.c b/src/cairo-hash.c index 0c8884bc6..e95894960 100644 --- a/src/cairo-hash.c +++ b/src/cairo-hash.c @@ -113,7 +113,9 @@ static const cairo_cache_arrangement_t cache_arrangements [] = { #define LIVE_ENTRY_P(cache, i) \ (!((NULL_ENTRY_P((cache),(i))) || (DEAD_ENTRY_P((cache),(i))))) -#ifdef CAIRO_DO_SANITY_CHECKING +#ifdef NDEBUG +#define _cache_sane_state(c) +#else static void _cache_sane_state (cairo_cache_t *cache) { @@ -125,8 +127,6 @@ _cache_sane_state (cairo_cache_t *cache) /* assert (cache->used_memory <= cache->max_memory); */ assert (cache->live_entries <= cache->arrangement->size); } -#else -#define _cache_sane_state(c) #endif static void |