blob: 5bb661e9665fa872827f85a603207702e0dfd963 (
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
|
/*
* This file is part of LibNSLayout
* Licensed under the ISC License, http://opensource.org/licenses/ISC
* Copyright 2015 Michael Drake <tlsa@netsurf-browser.org>
*/
/** \file src/util/util.h
* Layout object handling
*/
#ifndef nsl_util_util_h_
#define nsl_util_util_h_
#ifndef UNUSED
#define UNUSED(x_) (void)(x_)
#endif
#ifndef SLEN
#define SLEN(x_) (sizeof((x_)) - 1)
#endif
#define NSL_DOM_ERR(x_) ((x_ << 8) | NSL_LIBDOM)
#define NSL_CSS_ERR(x_) ((x_ << 8) | NSL_LIBCSS)
#endif
|