[Groonga-commit] groonga/grngo at 2e5c827 [master] Define a macro for debugging, GRNGO_DEBUG().

Back to archive index

susumu.yata null+****@clear*****
Fri Jul 31 10:03:45 JST 2015


susumu.yata	2015-07-31 10:03:45 +0900 (Fri, 31 Jul 2015)

  New Revision: 2e5c82774c7bf5a2ce2a8c461ef3435acb99568a
  https://github.com/groonga/grngo/commit/2e5c82774c7bf5a2ce2a8c461ef3435acb99568a

  Message:
    Define a macro for debugging, GRNGO_DEBUG().

  Modified files:
    grngo.c

  Modified: grngo.c (+8 -0)
===================================================================
--- grngo.c    2015-07-31 10:02:26 +0900 (beabd67)
+++ grngo.c    2015-07-31 10:03:45 +0900 (743c877)
@@ -3,6 +3,14 @@
 #include <math.h>
 #include <string.h>
 
+// -- debug --
+
+#include <stdio.h>
+
+#define GRNGO_DEBUG(fmt, ...)\
+  fprintf(stderr, "%s:%d: In %s: " fmt "\n",\
+          __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__)
+
 // -- miscellaneous --
 
 #define GRNGO_MAX_BUILTIN_TYPE_ID GRN_DB_WGS84_GEO_POINT
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index