diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-12 00:03:36 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-12 00:03:36 +0200 |
commit | 8dae85183682dbef2b01ef7956c734bad27aca7e (patch) | |
tree | 99574ab9aa85e546acc20e755cbd4c93894493f2 /include | |
parent | 7e9f0803c52bba4149c0eb1aa52ef3933c95f657 (diff) | |
download | libssh-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.h | 5 |
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) |