@@ -227,3 +227,9 @@ BBDebugScope * bbObjectStructInfo( char * name ) {
return 0;
}
+
+BBObject * bbNullObjectTest( BBObject *o ) {
+ if (o == &bbNullObject) brl_blitz_NullObjectError();
+ return o;
+}
@@ -93,6 +93,8 @@ struct struct_node {
void bbObjectRegisterStruct( BBDebugScope *p );
BBDebugScope * bbObjectStructInfo( char * name );
+BBObject * bbNullObjectTest( BBObject *o );
#ifdef __cplusplus
#endif