2
0
Эх сурвалжийг харах

Added null object function test.

woollybah 8 жил өмнө
parent
commit
c7b6a26f7f

+ 6 - 0
blitz.mod/blitz_object.c

@@ -227,3 +227,9 @@ BBDebugScope * bbObjectStructInfo( char * name ) {
 	
 	return 0;
 }
+
+BBObject * bbNullObjectTest( BBObject *o ) {
+	if (o == &bbNullObject) brl_blitz_NullObjectError();
+	return o;
+}
+

+ 2 - 0
blitz.mod/blitz_object.h

@@ -93,6 +93,8 @@ struct struct_node {
 void bbObjectRegisterStruct( BBDebugScope *p );
 BBDebugScope * bbObjectStructInfo( char * name );
 
+BBObject * bbNullObjectTest( BBObject *o );
+
 #ifdef __cplusplus
 }
 #endif