diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-08-27 18:07:20 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-09-03 15:51:45 +0100 |
commit | c477e9ce49801d4d19f92894e3b2f5d063925b3e (patch) | |
tree | ee95d77ba4f7a084bee99d714204fa0aa4457fcd | |
parent | fb22383993d76161d7f63446e715d4fa16623716 (diff) | |
download | cogl-c477e9ce49801d4d19f92894e3b2f5d063925b3e.tar.gz |
debug: define COGL_DEBUG_ macros for non-debug builds
Since we only want to disable the debug features that may impact
performance when building with --disable-debug this ensures that the
COGL_DEBUG_ macros aren't defined as NOPs for non-debug builds.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit c4b50040b5c033e370eb721d1d217eced8ebdaad)
-rw-r--r-- | cogl/cogl-debug.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h index abe8f9e7..a7ac6168 100644 --- a/cogl/cogl-debug.h +++ b/cogl/cogl-debug.h @@ -75,8 +75,6 @@ typedef enum { extern GHashTable *_cogl_debug_instances; #define COGL_DEBUG_N_LONGS COGL_FLAGS_N_LONGS_FOR_SIZE (COGL_DEBUG_N_FLAGS) -#ifdef COGL_ENABLE_DEBUG - /* _cogl_debug_flags currently needs to exported outside of the shared library for cogl-pango. The special COGL_EXPORT macro is needed to get this to work when building with MSVC */ @@ -107,20 +105,6 @@ COGL_EXPORT extern unsigned long _cogl_debug_flags[COGL_DEBUG_N_LONGS]; #endif /* __GNUC__ */ -#else /* !COGL_ENABLE_DEBUG */ - -#define COGL_NOTE(type,...) G_STMT_START {} G_STMT_END - -#define COGL_DEBUG_ENABLED(flag) FALSE - -#define COGL_DEBUG_SET_FLAG(flag) \ - G_STMT_START { } G_STMT_END - -#define COGL_DEBUG_CLEAR_FLAG(flag) \ - G_STMT_START { } G_STMT_END - -#endif /* COGL_ENABLE_DEBUG */ - void _cogl_debug_check_environment (void); |