tuklib_exit.h 706 B

1234567891011121314151617181920212223242526
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. /// \file tuklib_exit.h
  4. /// \brief Close stdout and stderr, and exit
  5. /// \note Requires tuklib_progname and tuklib_gettext modules
  6. //
  7. // Author: Lasse Collin
  8. //
  9. // This file has been put into the public domain.
  10. // You can do whatever you want with this file.
  11. //
  12. ///////////////////////////////////////////////////////////////////////////////
  13. #ifndef TUKLIB_EXIT_H
  14. #define TUKLIB_EXIT_H
  15. #include "tuklib_common.h"
  16. TUKLIB_DECLS_BEGIN
  17. #define tuklib_exit TUKLIB_SYMBOL(tuklib_exit)
  18. extern void tuklib_exit(int status, int err_status, int show_error)
  19. tuklib_attr_noreturn;
  20. TUKLIB_DECLS_END
  21. #endif