meta: add ivy-diag library

ivy-diag is used for generating and emitting diagnostic messages during compilation.
This commit is contained in:
2025-05-08 10:48:23 +01:00
parent 8e8637882d
commit c459f50e67
13 changed files with 1151 additions and 0 deletions

15
diag/write.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef _DIAG_WRITE_H_
#define _DIAG_WRITE_H_
#include <ivy/diag.h>
struct diag_writer {
enum ivy_status (*write)(
struct ivy_diag_ctx *, struct ivy_diag *, struct ivy_diag_stream *);
};
extern enum ivy_status diag_write(
struct ivy_diag_ctx *ctx, struct ivy_diag *diag,
enum ivy_diag_format format, struct ivy_diag_stream *stream);
#endif