Changeset 7291 for code/branches/doc/src/libraries/util/Debug.h
- Timestamp:
- Aug 31, 2010, 5:19:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/util/Debug.h
r6443 r7291 52 52 6: Crazy debug information 53 53 54 @example 54 Example: 55 @code 55 56 COUT(0) << "Very important output" << std::endl; 56 57 COUT(1) << "Error: Something went wrong!" << std::endl; … … 58 59 COUT(3) << "Info: It's Monday" << std::endl; 59 60 COUT(4) << "Debug: x is 1.23456" << std::endl; 61 @endcode 60 62 */ 61 63 … … 96 98 where (a > b ? 0 : ) stands for COUT(x). This should explain how 97 99 this macro magic can possibly even work ;) 98 @example 100 101 Example: 102 @code 99 103 COUT(3) << "Some info" << std::endl; 104 @endcode 100 105 @note 101 106 The ? : operator requires both possible results to have the type of
Note: See TracChangeset
for help on using the changeset viewer.