summaryrefslogtreecommitdiff
path: root/TAO/tao/Object.i
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-07 20:15:18 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-07 20:15:18 +0000
commit9f075fc05c097253ee038608124940cb087afa6b (patch)
tree11fabe3aec6a812c74d72610183bc054a85b0445 /TAO/tao/Object.i
parenta6fbbca6f9040e9131feffa679a0bce25dc66c57 (diff)
downloadATCD-9f075fc05c097253ee038608124940cb087afa6b.tar.gz
ChangeLogTag:Sat Oct 07 15:05:31 2000 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Object.i')
-rw-r--r--TAO/tao/Object.i13
1 files changed, 13 insertions, 0 deletions
diff --git a/TAO/tao/Object.i b/TAO/tao/Object.i
index 1e20ff5cf37..dbb01b355f5 100644
--- a/TAO/tao/Object.i
+++ b/TAO/tao/Object.i
@@ -43,6 +43,19 @@ CORBA_Object::_duplicate (CORBA_Object_ptr obj)
return obj;
}
+ACE_INLINE CORBA::Boolean
+CORBA::is_nil (CORBA::Object_ptr obj)
+{
+ if (obj == 0)
+ return 1;
+
+ // To accomodate new definitions
+ if (obj->_stubobj ())
+ return obj->_stubobj ()->orb_core ()->object_is_nil (obj);
+
+ return 0;
+}
+
// Null pointers represent nil objects.