summaryrefslogtreecommitdiff
path: root/TAO/tao/Environment.i
blob: d6144074e379bf3819886149aaec63660b8232f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// -*- C++ -*-
//
// $Id$

ACE_INLINE 
CORBA::Environment &
CORBA::default_environment (void)
{
  return TAO_default_environment ();
}

// ======================================================

ACE_INLINE 
CORBA::Boolean
CORBA::is_nil (CORBA::Environment_ptr env)
{
  return env == 0;
}

ACE_INLINE 
void
CORBA::release (CORBA::Environment_ptr env)
{
  delete env;
}

ACE_INLINE 
CORBA::Exception *
CORBA::Environment::exception (void) const
{
  return this->exception_;
}

ACE_INLINE 
CORBA::Environment *
CORBA::Environment::_duplicate (CORBA::Environment *x)
{
  if (x == 0)
    {
      return 0;
    }

  return new CORBA::Environment (*x);
}

ACE_INLINE 
CORBA::Environment_ptr
CORBA::Environment::_nil (void)
{
  return (CORBA::Environment_ptr) 0;
}