diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-07-18 22:58:09 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-07-18 22:58:09 +0000 |
commit | d981911d468ff2e1ca97b86a5af8ef66b3c2a2ef (patch) | |
tree | 373988d178b9a1574dbcffa205975fb71d7f6385 /shared | |
parent | bcb01904ea65007aaa53313c8d8a70252f97fe45 (diff) |
added DEBUG define to control debug post()
svn path=/trunk/externals/tkwidgets/; revision=10181
Diffstat (limited to 'shared')
-rw-r--r-- | shared/tkwidgets.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stdio.h> #include <string.h> +#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)); } |