summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2015-08-02 15:21:55 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2015-08-03 21:30:20 (GMT)
commit17b7bca264ccbe32a921d7286186dd303cecfcba (patch)
tree131f9b863e65731854a7a0b815f58e8e53b3cb94
parent86bbb63e0883ed127cc6247300d2422e42fde803 (diff)
downloadlibnslayout-17b7bca264ccbe32a921d7286186dd303cecfcba.tar.gz
libnslayout-17b7bca264ccbe32a921d7286186dd303cecfcba.tar.bz2
Add error conversion macros.
-rw-r--r--src/util/util.h7
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