1/*
2 * Copyright (c) 2012, ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, CAB F.78, Universitaetstrasse 6, CH-8092 Zurich,
8 * Attn: Systems Group.
9 */
10
11#ifndef LIBTERM_TERM_DEBUG_H
12#define LIBTERM_TERM_DEBUG_H
13
14/*
15 * Debug printer, turned on by setting 'term_debug = True' in Config.hs.
16 */
17#if defined(TERMINAL_LIBRARY_DEBUG) || defined(GLOBAL_DEBUG)
18#define TERM_DEBUG(arg...) debug_printf(arg)
19#else
20#define TERM_DEBUG(arg...) ((void)0)
21#endif
22
23#endif // LIBTERM_TERM_DEBUG_H
24