1 //===----------------------- cxa_thread_atexit.cpp ------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "cxxabi.h"
11 
12 namespace __cxxabiv1 {
13 
14 extern "C" {
15 
16 #ifdef HAVE___CXA_THREAD_ATEXIT_IMPL
17 
__cxa_thread_atexit(void (* dtor)(void *),void * obj,void * dso_symbol)18 int __cxa_thread_atexit(void (*dtor)(void *), void *obj,
19                         void *dso_symbol) throw() {
20   extern int __cxa_thread_atexit_impl(void (*)(void *), void *, void *);
21   return __cxa_thread_atexit_impl(dtor, obj, dso_symbol);
22 }
23 
24 #endif // HAVE__CXA_THREAD_ATEXIT_IMPL
25 
26 } // extern "C"
27 
28 } // namespace __cxxabiv1
29