Some root interfaces and configuration machinery
[shibboleth/cpp-xmltooling.git] / xmltooling / base.h
index 3fe0221..4fc9d51 100644 (file)
   #define XMLTOOL_EXCEPTIONAPI(api)\r
 #endif\r
 \r
+// Macro to block copy c'tor and assignment operator for a class\r
+#define MAKE_NONCOPYABLE(type) \\r
+    private: \\r
+        type(const type&); \\r
+        type& operator=(const type&)\r
+\r
+#ifndef NULL\r
+#define NULL    0\r
+#endif\r
+\r
 #endif /* __xmltooling_base_h__ */\r