Changeset 146 for vtcross/branches
- Timestamp:
- 03/12/09 16:50:20 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/branches/bhilburn/src/include/vtcross/debug.h
r144 r146 11 11 #define DEBUG_H 12 12 13 #include < iostream>13 #include <cstdio> 14 14 15 15 extern bool VTCROSS_DEBUG; 16 16 17 #define DEBUG( class, msg) \17 #define DEBUG(...) \ 18 18 if(VTCROSS_DEBUG) \ 19 std::cout << #class << ": " << msg << std::endl;19 fprintf(stderr, __VA_ARGS__); 20 20 21 #define LOG( function, msg) \22 std::cout << #function << ": " << msg << std::endl;21 #define LOG(...) \ 22 fprintf(stdout, __VA_ARGS__); 23 23 24 24 #endif