Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
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.
 
 
 
 
 
 

28 lines
663 B

/*
* Copyright (c) 2016 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* @file
* @brief Basic C++ destructor module for globals for ARM
*/
#include <zephyr/toolchain.h>
EXTERN_C int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso);
/**
* @brief Register destructor for a global object
*
* @param objptr global object pointer
* @param destructor the global object destructor function
* @param dso Dynamic Shared Object handle for shared libraries
*
* Wrapper for __cxa_atexit()
*/
int __aeabi_atexit(void *objptr, void (*destructor)(void *), void *dso)
{
return __cxa_atexit(destructor, objptr, dso);
}