| 1 | #ifndef IBUS_SUNPINYIN_DEBUG_H |
| 2 | #define IBUS_SUNPINYIN_DEBUG_H |
| 3 | |
| 4 | #include <iostream> |
| 5 | #include <iomanip> |
| 6 | #include <fstream> |
| 7 | #include <cerrno> |
| 8 | |
| 9 | namespace ibus |
| 10 | { |
| 11 | extern std::fstream log; |
| 12 | } |
| 13 | |
| 14 | using std::cout; |
| 15 | using std::hex; |
| 16 | using std::endl; |
| 17 | |
| 18 | #define PRINT_VAL(val) \ |
| 19 | do { \ |
| 20 | cout << " "#val" = " << val << endl; \ |
| 21 | } while (0) |
| 22 | |
| 23 | #endif // IBUS_SUNPINYIN_DEBUG_H |
| 24 | |
| 25 | // -*- indent-tabs-mode: nil -*- vim:et:ts=4 |