// Copyright © 2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
// SPDX-License-Identifier: MIT

#ifndef _ERROR_H
#define _ERROR_H

#ifdef __cplusplus
extern "C" {
#endif

void error(int, int, const char *, ...);
void error_at_line(int, int, const char *, unsigned int, const char *, ...);

extern unsigned int error_message_count;
extern int error_one_per_line;

extern void (*error_print_progname)(void);

#ifdef __cplusplus
}
#endif

#endif // _ERROR_H
