summaryrefslogtreecommitdiff
path: root/include/util/Unused.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/util/Unused.hpp')
-rw-r--r--include/util/Unused.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/util/Unused.hpp b/include/util/Unused.hpp
new file mode 100644
index 0000000..e04a8cf
--- /dev/null
+++ b/include/util/Unused.hpp
@@ -0,0 +1,12 @@
+#ifndef __UNUSED_H
+#define __UNUSED_H
+
+#if defined( __GNUC__ )
+#define CRAWLER_UNUSED( x ) x __attribute__( ( unused ) )
+#elif defined( __MSVC__ )
+#define CRAWLER_UNUSED( x ) __pragma( warning( suppress: 4100 4101 ) ) x
+#else
+#define CRAWLER_UNUSED( x ) x
+#endif
+
+#endif