Index: trunk/psLib/src/math/psConstants.h
===================================================================
--- trunk/psLib/src/math/psConstants.h	(revision 1964)
+++ trunk/psLib/src/math/psConstants.h	(revision 2058)
@@ -6,6 +6,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-05 23:14:15 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-12 20:53:02 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -150,4 +150,11 @@
 }
 
+#define PS_CHECK_IMAGE_TYPE_RETURN_NULL(NAME, TYPE) \
+if (NAME->type.type != TYPE) { \
+    psError(__func__,"Unallowable operation: %s has incorrect type.", #NAME); \
+    return(NULL); \
+}
+
+
 #define PS_CHECK_NULL_1DPOLY_RETURN_NULL(NAME)                                                          \
 if (NAME == NULL || NAME->coeff == NULL) {                                                         \
