diff options
author | Robert Bragg <robert@linux.intel.com> | 2010-03-02 02:07:40 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2010-03-02 16:15:39 +0000 |
commit | c3917c8da587f7ad0e5a6ffe6b383355fcf2821b (patch) | |
tree | 5a3b72e044364074c1a0ad75972534662470f7b4 /cogl/cogl-debug.c | |
parent | d32b4b1c127cf019787e6cf0dae608f9175a88da (diff) | |
download | cogl-c3917c8da587f7ad0e5a6ffe6b383355fcf2821b.tar.gz |
cogl debug: Adds missing guards around debug cogl_args[]1.2.0
commit 511e5ceb516dc accidentally removed the #ifdef COGL_ENABLE_DEBUG
guards around the "cogl-debug" and "cogl-no-debug" cogl_args[] which
this patch restores.
Diffstat (limited to 'cogl/cogl-debug.c')
-rw-r--r-- | cogl/cogl-debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cogl/cogl-debug.c b/cogl/cogl-debug.c index 5999ba2f..46ab04cb 100644 --- a/cogl/cogl-debug.c +++ b/cogl/cogl-debug.c @@ -157,10 +157,12 @@ cogl_arg_no_debug_cb (const char *key, #endif /* COGL_ENABLE_DEBUG */ static GOptionEntry cogl_args[] = { +#ifdef COGL_ENABLE_DEBUG { "cogl-debug", 0, 0, G_OPTION_ARG_CALLBACK, cogl_arg_debug_cb, N_("COGL debugging flags to set"), "FLAGS" }, { "cogl-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, cogl_arg_no_debug_cb, N_("COGL debugging flags to unset"), "FLAGS" }, +#endif /* COGL_ENABLE_DEBUG */ { NULL, }, }; |