Add proper error message for bad manual palettes

This commit is contained in:
ISSOtm
2022-05-21 15:34:44 +02:00
committed by Eldred Habert
parent 7a7126f3b8
commit 3f5983358c
6 changed files with 56 additions and 13 deletions

View File

@@ -67,8 +67,21 @@ struct Options {
extern Options options;
/**
* Prints the error count, and exits with failure
*/
[[noreturn]] void giveUp();
/**
* Prints a warning, and does not change the error count
*/
void warning(char const *fmt, ...);
/**
* Prints an error, and increments the error count
*/
void error(char const *fmt, ...);
/**
* Prints a fatal error, increments the error count, and gives up
*/
[[noreturn]] void fatal(char const *fmt, ...);
struct Palette {