summaryrefslogtreecommitdiff
path: root/src/cxa_thread_atexit.cpp
blob: 7962e28af703ab344c2fc2969aba6981103735b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//===----------------------- cxa_thread_atexit.cpp ------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "cxxabi.h"

namespace __cxxabiv1 {
extern "C" {

#ifdef HAVE___CXA_THREAD_ATEXIT_IMPL

_LIBCXXABI_FUNC_VIS int __cxa_thread_atexit(void (*dtor)(void *), void *obj,
                                            void *dso_symbol) throw() {
  extern int __cxa_thread_atexit_impl(void (*)(void *), void *, void *);
  return __cxa_thread_atexit_impl(dtor, obj, dso_symbol);
}

#endif // HAVE__CXA_THREAD_ATEXIT_IMPL

} // extern "C"
} // namespace __cxxabiv1