~ubuntu-branches/ubuntu/raring/sunpinyin/raring

« back to all changes in this revision

Viewing changes to wrapper/ibus/src/debug.h

  • Committer: Package Import Robot
  • Author(s): YunQiang Su
  • Date: 2012-03-30 15:31:55 UTC
  • mfrom: (1.1.3) (1.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20120330153155-qgls77sogzgtg9zp
Tags: 2.0.3+git20120222-1
* Team upload: git snapshot 20120222.
   - fix breaks if LDFLAGS in environment contains
       multiple words (Closese #646001).
   - rm patches merged to upstream:
       append-os-environ-toenv.patch
       fix-ftbfs-on-sh.patch
       remove-10-candidate-words-limitation.patch
   - refresh disable-lm-dict-compile.patch.
* Bump stardard version to 3.9.3: no modify needed.
* add libsunpinyin3-dbg and python-sunpinyin packages.
* debian/compat to 9, multiarch it.
* rewrite debian/rules with dh 7 format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SUNPINYIN_DEBUG_H
 
2
#define 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 // SUNPINYIN_DEBUG_H