diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-08-02 16:21:55 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2015-08-03 22:30:20 +0100 |
commit | 17b7bca264ccbe32a921d7286186dd303cecfcba (patch) | |
tree | 131f9b863e65731854a7a0b815f58e8e53b3cb94 /src | |
parent | 86bbb63e0883ed127cc6247300d2422e42fde803 (diff) | |
download | libnslayout-17b7bca264ccbe32a921d7286186dd303cecfcba.tar.gz libnslayout-17b7bca264ccbe32a921d7286186dd303cecfcba.tar.bz2 |
Add error conversion macros.
Diffstat (limited to 'src')
-rw-r--r-- | src/util/util.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/util.h b/src/util/util.h index c03691b..f63f40f 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -12,11 +12,14 @@ #define nslayout_util_util_h_ #ifndef UNUSED -#define UNUSED(x) (void)(x) +#define UNUSED(x_) (void)(x_) #endif #ifndef SLEN -#define SLEN(x) (sizeof((x)) - 1) +#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 |