mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
24 lines
492 B
C
24 lines
492 B
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RGBDS_ERROR_H
|
|
#define RGBDS_ERROR_H
|
|
|
|
#include "helpers.h"
|
|
#include "platform.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // RGBDS_ERROR_H
|