Skip to content

Instantly share code, notes, and snippets.

@lichray
Created September 16, 2012 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lichray/3732654 to your computer and use it in GitHub Desktop.
Save lichray/3732654 to your computer and use it in GitHub Desktop.
Enable fcitx-glient log for debug build.
--- ./src/lib/fcitx-gclient/fcitxclient.c~ 2012-09-12 08:39:35.000000000 -0500
+++ ./src/lib/fcitx-gclient/fcitxclient.c 2012-09-16 09:21:47.061179876 -0500
@@ -26,9 +26,13 @@
#include "fcitxclient.h"
#include "marshall.h"
+#ifdef _DEBUG
#define fcitx_gclient_debug(...) g_log ("fcitx-client", \
G_LOG_LEVEL_DEBUG, \
__VA_ARGS__)
+#else
+#define fcitx_gclient_debug(...)
+#endif
typedef struct _ProcessKeyStruct ProcessKeyStruct;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment