cpp_dtors.c 709 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2016 Wind River Systems, Inc.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /*
  7. * @file
  8. * @brief Basic C++ destructor module for globals
  9. *
  10. */
  11. #include <toolchain.h>
  12. __weak void *__dso_handle;
  13. /**
  14. * @brief Register destructor for a global object
  15. *
  16. * @param destructor the global object destructor function
  17. * @param objptr global object pointer
  18. * @param dso Dynamic Shared Object handle for shared libraries
  19. *
  20. * Function does nothing at the moment, assuming the global objects
  21. * do not need to be deleted
  22. *
  23. * @return N/A
  24. */
  25. int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso)
  26. {
  27. ARG_UNUSED(destructor);
  28. ARG_UNUSED(objptr);
  29. ARG_UNUSED(dso);
  30. return 0;
  31. }