blob: f63f40fc827dac9b050b122ab0042ac5fd5621a5 (
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 nslayout_util_util_h_
#define nslayout_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) | NSLAYOUT_LIBDOM)
#define NSL_CSS_ERR(x_) ((x_ << 8) | NSLAYOUT_LIBCSS)
#endif
|