summaryrefslogtreecommitdiff
path: root/src/ivyglutloop.c
diff options
context:
space:
mode:
authorfcolin2006-04-20 15:51:37 +0000
committerfcolin2006-04-20 15:51:37 +0000
commitd20808b04feb328272a35ee2b03f4ae19db23fbe (patch)
tree070f5efb4b7f9b4603a8d2d830c8ef5210495572 /src/ivyglutloop.c
parent68372c19d14986d372918cd268d5855fd7665fc3 (diff)
downloadivy-c-d20808b04feb328272a35ee2b03f4ae19db23fbe.zip
ivy-c-d20808b04feb328272a35ee2b03f4ae19db23fbe.tar.gz
ivy-c-d20808b04feb328272a35ee2b03f4ae19db23fbe.tar.bz2
ivy-c-d20808b04feb328272a35ee2b03f4ae19db23fbe.tar.xz
cleanup DEBUG code
Diffstat (limited to 'src/ivyglutloop.c')
-rwxr-xr-xsrc/ivyglutloop.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ivyglutloop.c b/src/ivyglutloop.c
index a777a30..372c268 100755
--- a/src/ivyglutloop.c
+++ b/src/ivyglutloop.c
@@ -39,6 +39,7 @@
#include <GL/glut.h>
+#include "ivydebug.h"
#include "ivychannel.h"
#include "ivyglutloop.h"
@@ -83,18 +84,14 @@ void IvyGlutChannelClose( Channel channel )
static void IvyGlutHandleChannelRead( int source, GLUTInputId id, void *data )
{
Channel channel = (Channel)data;
-#ifdef DEBUG
- printf("Handle Channel read %d\n",source );
-#endif
+ TRACE("Handle Channel read %d\n",source );
(*channel->handle_read)(channel,source,channel->data);
}
static void IvyGlutHandleChannelDelete( int source, GLUTInputId id, void *data )
{
Channel channel = (Channel)data;
-#ifdef DEBUG
- printf("Handle Channel delete %d\n",source );
-#endif
+ TRACE("Handle Channel delete %d\n",source );
(*channel->handle_delete)(channel->data);
}