#ifndef IO_H #define IO_H #include "types.h" /* Abort execution and exit with an error code. */ #define bail(...) _bail(__FILE__, __LINE__, __VA_ARGS__) /* Debug output - disabled for bootstrap compiler. */ #define debug(...) ((void)0) __attribute__((noreturn)) void _bail( const char *file, int line, const char *restrict fmt, ... ); /* Read a file in its entirety into `data`. */ i32 readfile(const char *path, char **data); #endif