1
0

exit_.hpp 469 B

12345678910111213141516
  1. #ifndef AFUN_EXIT_H
  2. #define AFUN_EXIT_H
  3. #include <cstdlib>
  4. typedef void aFunExitFunc(void *);
  5. #define aFunExitSuccess EXIT_SUCCESS
  6. #define aFunExitFail EXIT_FAILURE
  7. [[ noreturn ]] AFUN_TOOL_EXPORT void aFunExit(int exit_code);
  8. AFUN_TOOL_EXPORT int aFunTryExitPseudo();
  9. AFUN_TOOL_EXPORT int aFunExitPseudo();
  10. AFUN_TOOL_EXPORT int aFunAtExitTry(aFunExitFunc *func, void *data);
  11. AFUN_TOOL_EXPORT int aFunAtExit(aFunExitFunc *func, void *data);
  12. #endif //AFUN_EXIT_H