mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
- Changes most `/* comments */` to `// comments` - Changes `/**` block comments consistently to `/*` - Adds consistent license comments to all files Also renames `T_POP_SET` to `T_Z80_SET`
30 lines
581 B
C
30 lines
581 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 1997-2021, RGBDS contributors.
|
|
*
|
|
* 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
|