blob: b4017e5bb513a1f4be07441f44b5fc9ad831c8e7 [file] [log] [blame]
Peter Mitsis8e35cc82016-01-13 13:02:56 -05001/*
2 * Copyright (c) 2016 Wind River Systems, Inc.
3 *
David B. Kinderac74d8b2017-01-18 17:01:01 -08004 * SPDX-License-Identifier: Apache-2.0
Peter Mitsis8e35cc82016-01-13 13:02:56 -05005 */
6
7/*
8 * @file
9 * @brief Basic C++ destructor module for globals
10 *
11 */
12
13#include <toolchain.h>
14
Michael Hope73838142018-03-26 20:32:05 +020015__weak void *__dso_handle;
Peter Mitsis8e35cc82016-01-13 13:02:56 -050016
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 * @return N/A
28 */
29int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso)
30{
31 ARG_UNUSED(destructor);
32 ARG_UNUSED(objptr);
33 ARG_UNUSED(dso);
34 return 0;
35}