logo

error-standalone

standalone <error.h> implementation intended for muslgit clone https://anongit.hacktivis.me/git/error-standalone.git/

error.h (463B)


  1. // Copyright © 2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. // SPDX-License-Identifier: MIT
  3. #ifndef _ERROR_H
  4. #define _ERROR_H
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. void error(int, int, const char *, ...);
  9. void error_at_line(int, int, const char *, unsigned int, const char *, ...);
  10. extern unsigned int error_message_count;
  11. extern int error_one_per_line;
  12. extern void (*error_print_progname)(void);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif // _ERROR_H