Numworks Epsilon  1.4.1
Graphing Calculator Operating System
atexit.cpp
Go to the documentation of this file.
1 /* C++ expects the __dso_handle symbol to be defined to some unique value in
2  * each dynamic shared object. Even though we're not using dynamic loading,
3  * we still have to define __dso_handle. */
4 
5 void * __dso_handle = nullptr;
6 
7 /* The __cxa_atexit function registers a function to be called when the program
8  * exits or when a shared library is unloaded.
9  * We don't support shared libraries and our program should never exit, so we
10  * can simply do nothing and return zero. */
11 
12 extern "C" int __cxa_atexit(void (*dtor)(void *), void * object, void * handle) {
13  return 0;
14 }
void * __dso_handle
Definition: atexit.cpp:5
int __cxa_atexit(void(*dtor)(void *), void *object, void *handle)
Definition: atexit.cpp:12