[PD-cvs] SF.net SVN: pure-data:[10181] trunk/externals/tkwidgets/shared/tkwidgets.c

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Sat Jul 19 00:58:09 CEST 2008


Revision: 10181
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10181&view=rev
Author:   eighthave
Date:     2008-07-18 22:58:09 +0000 (Fri, 18 Jul 2008)

Log Message:
-----------
added DEBUG define to control debug post()

Modified Paths:
--------------
    trunk/externals/tkwidgets/shared/tkwidgets.c

Modified: trunk/externals/tkwidgets/shared/tkwidgets.c
===================================================================
--- trunk/externals/tkwidgets/shared/tkwidgets.c	2008-07-18 22:50:41 UTC (rev 10180)
+++ trunk/externals/tkwidgets/shared/tkwidgets.c	2008-07-18 22:58:09 UTC (rev 10181)
@@ -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 @@
 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));
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list