summaryrefslogtreecommitdiff
path: root/src/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
new file mode 100644
index 0000000..c03691b
--- /dev/null
+++ b/src/util/util.h
@@ -0,0 +1,22 @@
+/*
+ * 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
+
+#endif