]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sg_inlines.h
Canvas: improved clipping and new property clip-frame.
[simgear.git] / simgear / sg_inlines.h
index 399c4bc1ebd86d17a8172f183db639782f19af79..f10090db99068a1684e74d409df110ffcec31d58 100644 (file)
@@ -100,4 +100,13 @@ inline void SG_NORMALIZE_RANGE( T &val, const T min, const T max ) {
     while( val < min ) val += step;
 }
 
+// avoid an 'unused parameter' compiler warning.
+#define SG_UNUSED(x) (void)x
+
+// easy way to disable the copy constructor and assignment operator
+// on an object
+#define SG_DISABLE_COPY(Class) \
+    Class(const Class &); \
+    Class &operator=(const Class &);
+   
 #endif // _SG_INLINES_H