Index: trunk/psLib/src/sys/psAssert.h
===================================================================
--- trunk/psLib/src/sys/psAssert.h	(revision 15047)
+++ trunk/psLib/src/sys/psAssert.h	(revision 15419)
@@ -224,4 +224,12 @@
 }
 
+#define PS_ASSERT_PTR_NULL(NAME, RVAL) \
+if ((NAME) != NULL) { \
+    psError(PS_ERR_BAD_PARAMETER_NULL, true, \
+            "Unallowable operation: %s is not NULL.", \
+            #NAME); \
+    return RVAL; \
+}
+
 #define PS_ASSERT_PTR_TYPE(NAME, TYPE, RVAL) \
 if ((NAME)->type.type != TYPE) { \
