You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
732 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. *
  9. *
  10. */
  11. #if defined( Uses_TObject ) && !defined( __TObject )
  12. #define __TObject
  13. #include <stddef.h>
  14. class TObject
  15. {
  16. public:
  17. virtual ~TObject();
  18. static void CLY_destroy( TObject * );
  19. virtual void shutDown();
  20. private:
  21. };
  22. inline void TObject::CLY_destroy( TObject *o )
  23. {
  24. if( o != 0 )
  25. o->shutDown();
  26. delete o;
  27. }
  28. inline void CLY_destroy( TObject *o )
  29. {
  30. if (o)
  31. {
  32. o->shutDown();
  33. delete o;
  34. }
  35. }
  36. // SET: It also sets the pointer to 0
  37. #define destroy0(o) \
  38. { \
  39. CLY_destroy(o);\
  40. o=0;\
  41. }
  42. #endif // Uses_TObject