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