~ubuntu-branches/ubuntu/maverick/vte/maverick-updates

« back to all changes in this revision

Viewing changes to src/debug.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-09-22 10:32:48 UTC
  • mto: (3.2.1 sid) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: james.westby@ubuntu.com-20090922103248-h3sba1b2lzzoheeg
Tags: upstream-0.21.5
ImportĀ upstreamĀ versionĀ 0.21.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef vte_debug_h_included
22
22
#define vte_debug_h_included
23
23
 
 
24
#include <config.h>
24
25
 
25
26
#include <glib.h>
26
27
 
76
77
#include <glib/gstdio.h>
77
78
static void _vte_debug_print(guint flags, const char *fmt, ...)
78
79
{
79
 
        if (_vte_debug_on (flags)) {
 
80
        _VTE_DEBUG_IF(flags) {
80
81
                va_list  ap;
81
82
                va_start (ap, fmt);
82
83
                g_vfprintf (stderr, fmt, ap);
85
86
}
86
87
#endif
87
88
 
 
89
#define _ASSERT_STATIC1(_line, _cond) typedef int _static_assert_on_line_##_line##_failed[(_cond)?1:-1]
 
90
#define _ASSERT_STATIC0(_line, _cond) _ASSERT_STATIC1 (_line, (_cond))
 
91
#define ASSERT_STATIC(_cond) _ASSERT_STATIC0 (__LINE__, (_cond))
 
92
 
88
93
G_END_DECLS
89
94
 
90
95
#endif