| 12 | } while (false) |
| 13 | |
| 14 | int testDebug(int argc, char** const /*argv*/) |
| 15 | { |
| 16 | if (argc != 1) { |
| 17 | std::cout << "Invalid arguments.\n"; |
| 18 | return -1; |
| 19 | } |
| 20 | |
| 21 | int retval = 0; |
| 22 | check(CM_DBG(true), true); |
| 23 | check(CM_DBG(4), 4); |
| 24 | check(CM_DBG(1.), 1.); |
| 25 | check(CM_DBG('c'), 'c'); |
| 26 | check(CM_DBG("literal string"), std::string("literal string")); |
| 27 | |
| 28 | std::string str = "std string"; |
| 29 | check(CM_DBG(str), "std string"); |
| 30 | check(CM_DBG(str.empty()), false); |
| 31 | |
| 32 | return retval; |
| 33 | } |