pointerToVoid.I 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Filename: pointerToVoid.I
  2. // Created by: drose (27Sep04)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function: PointerToVoid::Constructor
  20. // Access: Protected
  21. // Description:
  22. ////////////////////////////////////////////////////////////////////
  23. INLINE PointerToVoid::
  24. PointerToVoid() {
  25. _void_ptr = (void *)NULL;
  26. }
  27. ////////////////////////////////////////////////////////////////////
  28. // Function: PointerToVoid::Destructor
  29. // Access: Protected
  30. // Description:
  31. ////////////////////////////////////////////////////////////////////
  32. INLINE PointerToVoid::
  33. ~PointerToVoid() {
  34. nassertv(_void_ptr == (void *)NULL);
  35. }