aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-08-12 00:03:36 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-08-12 00:03:36 +0200
commit8dae85183682dbef2b01ef7956c734bad27aca7e (patch)
tree99574ab9aa85e546acc20e755cbd4c93894493f2 /include
parent7e9f0803c52bba4149c0eb1aa52ef3933c95f657 (diff)
downloadlibssh-8dae85183682dbef2b01ef7956c734bad27aca7e.tar.gz
libssh-8dae85183682dbef2b01ef7956c734bad27aca7e.tar.xz
libssh-8dae85183682dbef2b01ef7956c734bad27aca7e.zip
Make the calltrace logging optional
Diffstat (limited to 'include')
-rw-r--r--include/libssh/priv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 1c8628e..af3dc0b 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -872,8 +872,13 @@ int ssh_execute_message_callbacks(SSH_SESSION *session);
}\
} while(0)
+#ifdef DEBUG_CALLTRACE
#define enter_function() _enter_function(session)
#define leave_function() _leave_function(session)
+#else
+#define enter_function() (void)session
+#define leave_function() (void)session
+#endif
/** Free memory space */
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)