summaryrefslogtreecommitdiff
path: root/src/dom/debug.h
blob: cbe8559ee82d17dd2e57f0448d99ba5dbc345d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * This file is part of LibNSLayout
 * Licensed under the ISC License, http://opensource.org/licenses/ISC
 * Copyright 2015-2017 Michael Drake <tlsa@netsurf-browser.org>
 */

/** \file src/dom/debug.h
 * DOM debug
 */

#ifndef nsl_dom_debug_h_
#define nsl_dom_debug_h_

/** Define to enable DOM trace debug output */
#undef NSL_DOM_TRACE
#define NSL_DOM_TRACE

#include "util/util.h"

struct dom_event;

/** Don't use directly */
void nsl__dom_debug_dump_event(const struct dom_event *evt);


/**
 * Dump debug for dom event
 *
 * \param[in] evt  Dump debug concerning a DOM event.
 */
static inline void nsl_dom_debug_dump_event(const struct dom_event *evt)
{
#ifdef NSL_DOM_TRACE
	nsl__dom_debug_dump_event(evt);
#else
	UNUSED(evt);
#endif
}


#endif