mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Remove unused headers, and avoid relying on transitive inclusions `include-what-you-use` has been very useful for this!
16 lines
393 B
C++
16 lines
393 B
C++
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RGBDS_ERROR_H
|
|
#define RGBDS_ERROR_H
|
|
|
|
extern "C" {
|
|
|
|
[[gnu::format(printf, 1, 2)]] void warn(char const *fmt...);
|
|
[[gnu::format(printf, 1, 2)]] void warnx(char const *fmt, ...);
|
|
|
|
[[gnu::format(printf, 1, 2), noreturn]] void err(char const *fmt, ...);
|
|
[[gnu::format(printf, 1, 2), noreturn]] void errx(char const *fmt, ...);
|
|
}
|
|
|
|
#endif // RGBDS_ERROR_H
|