~lattis/muon

ref: 1c1ab113103e1a2ebcb7edf3a47f826428f8e124 muon/include/error.h -rw-r--r-- 510 bytes
1c1ab113Stone Tickle extract string.split() 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef MUON_ERROR_H
#define MUON_ERROR_H

#include <stdarg.h>

#include "platform/filesystem.h"

void error_unrecoverable(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
void error_message(struct source *src, uint32_t line, uint32_t col, const char *msg);
void error_messagev(struct source *src, uint32_t line, uint32_t col, const char *fmt, va_list args);
void error_messagef(struct source *src, uint32_t line, uint32_t col, const char *fmt, ...)
__attribute__ ((format(printf, 4, 5)));
#endif