exit_.h 473 B

12345678910111213141516
  1. #ifndef AFUN_EXIT_H
  2. #define AFUN_EXIT_H
  3. #include <stdlib.h>
  4. typedef void aFunExitFunc(void *);
  5. #define aFunExitSuccess EXIT_SUCCESS
  6. #define aFunExitFail EXIT_FAILURE
  7. AFUN_TOOL_EXPORT _Noreturn void aFunExit(int exit_code);
  8. AFUN_TOOL_EXPORT int aFunTryExitPseudo(void);
  9. AFUN_TOOL_EXPORT int aFunExitPseudo(void);
  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