Defined a DEBUG_RDP5 macro for selective debugging during the RDP5 integration process.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@340 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Erik Forsberg 2003-03-06 15:36:28 +00:00
parent f6520423f4
commit 4ccf5a9387
2 changed files with 9 additions and 0 deletions

3
configure vendored
View File

@ -59,6 +59,9 @@ case $arg in
--with-debug-kbd) --with-debug-kbd)
cflags="$cflags -g -DWITH_DEBUG_KBD" cflags="$cflags -g -DWITH_DEBUG_KBD"
;; ;;
--with-debug-rdp5)
cflags="$cflags -g -DWITH_DEBUG_RDP5"
;;
--without-debug*) --without-debug*)
;; ;;
*) *)

View File

@ -36,6 +36,12 @@
#define DEBUG_KBD(args) #define DEBUG_KBD(args)
#endif #endif
#ifdef WITH_DEBUG_RDP5
#define DEBUG_RDP5(args) printf args;
#else
#define DEBUG_RDP5(args)
#endif
#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } #define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; }
#include "constants.h" #include "constants.h"