From df06fe6084b1c1673348050309a3a0cb99b6634f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Feb 2019 15:10:44 -0500 Subject: add cluster support to gen-data.rb, show centroids on generated png --- util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index d13dfae..eeda5a7 100644 --- a/util.h +++ b/util.h @@ -7,6 +7,12 @@ #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define UNUSED(a) ((void) (a)) +#define D(...) do { \ + fprintf(stderr, "DEBUG: %s(): ", __func__); \ + fprintf(stderr, __VA_ARGS__); \ + fputs("\n", stderr); \ +} while (0) + #define die(...) do { \ fputs("FATAL: ", stderr); \ fprintf(stderr, __VA_ARGS__); \ -- cgit v1.2.3