mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
* Remove `err` and `warn`, keep `errx` and `warnx`, using them in RGBGFX too * Separate RGBGFX and RGBLINK warnings/errors from main options * Separate `report` function into `error` and `fatal` messages * Implicit newlines for most RGBASM errors
24 lines
686 B
C++
24 lines
686 B
C++
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef RGBDS_LINK_WARNING_HPP
|
|
#define RGBDS_LINK_WARNING_HPP
|
|
|
|
#include <stdint.h>
|
|
|
|
struct FileStackNode;
|
|
|
|
[[gnu::format(printf, 3, 4)]]
|
|
void warning(FileStackNode const *where, uint32_t lineNo, char const *fmt, ...);
|
|
[[gnu::format(printf, 3, 4)]]
|
|
void error(FileStackNode const *where, uint32_t lineNo, char const *fmt, ...);
|
|
[[gnu::format(printf, 1, 2)]]
|
|
void errorNoDump(char const *fmt, ...);
|
|
[[gnu::format(printf, 2, 3)]]
|
|
void argErr(char flag, char const *fmt, ...);
|
|
[[gnu::format(printf, 3, 4), noreturn]]
|
|
void fatal(FileStackNode const *where, uint32_t lineNo, char const *fmt, ...);
|
|
|
|
void requireZeroErrors();
|
|
|
|
#endif // RGBDS_LINK_WARNING_HPP
|