mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
20 lines
450 B
C++
20 lines
450 B
C++
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RGBDS_ERROR_H
|
|
#define RGBDS_ERROR_H
|
|
|
|
#include "helpers.hpp"
|
|
#include "platform.hpp"
|
|
|
|
extern "C" {
|
|
|
|
void warn(char const NONNULL(fmt), ...) format_(printf, 1, 2);
|
|
void warnx(char const NONNULL(fmt), ...) format_(printf, 1, 2);
|
|
|
|
[[noreturn]] void err(char const NONNULL(fmt), ...) format_(printf, 1, 2);
|
|
[[noreturn]] void errx(char const NONNULL(fmt), ...) format_(printf, 1, 2);
|
|
|
|
}
|
|
|
|
#endif // RGBDS_ERROR_H
|