From d981911d468ff2e1ca97b86a5af8ef66b3c2a2ef Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 18 Jul 2008 22:58:09 +0000 Subject: added DEBUG define to control debug post() svn path=/trunk/externals/tkwidgets/; revision=10181 --- shared/tkwidgets.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared/tkwidgets.c b/shared/tkwidgets.c index f238669..b37e03f 100644 --- a/shared/tkwidgets.c +++ b/shared/tkwidgets.c @@ -26,6 +26,9 @@ #include #include +#define DEBUG(x) +//#define DEBUG(x) x + /* -------------------- options handling ------------------------------------ */ void tkwidgets_query_options(t_symbol *receive_name, t_symbol *widget_id, @@ -158,7 +161,7 @@ t_symbol* tkwidgets_gen_all_tag(t_object *x) static int calculate_onset(int x_location, int width, int current_iolet, int total_iolets) { - post("calculate_onset"); + DEBUG(post("calculate_onset");); return(x_location + (width - IOWIDTH) \ * current_iolet / (total_iolets == 1 ? 1 : total_iolets - 1)); } -- cgit v1.2.1