mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Rename stdnoreturn.h to helpers.h
This file will contain more compiler-specific helpers. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "extern/stdnoreturn.h"
|
#include "helpers.h"
|
||||||
|
|
||||||
struct sOptions {
|
struct sOptions {
|
||||||
char binary[2];
|
char binary[2];
|
||||||
|
|||||||
2
include/extern/err.h
vendored
2
include/extern/err.h
vendored
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "extern/stdnoreturn.h"
|
#include "helpers.h"
|
||||||
|
|
||||||
#define warn rgbds_warn
|
#define warn rgbds_warn
|
||||||
#define vwarn rgbds_vwarn
|
#define vwarn rgbds_vwarn
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EXTERN_STDNORETURN_H
|
#ifndef HELPERS_H
|
||||||
#define EXTERN_STDNORETURN_H
|
#define HELPERS_H
|
||||||
|
|
||||||
#if defined(__STDC_VERSION__)
|
#if defined(__STDC_VERSION__)
|
||||||
#if __STDC_VERSION__ >= 201112L
|
#if __STDC_VERSION__ >= 201112L
|
||||||
@@ -35,4 +35,4 @@
|
|||||||
#define noreturn
|
#define noreturn
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* EXTERN_STDNORETURN_H */
|
#endif /* HELPERS_H */
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "extern/stdnoreturn.h"
|
#include "helpers.h"
|
||||||
|
|
||||||
noreturn void script_fatalerror(const char *fmt, ...);
|
noreturn void script_fatalerror(const char *fmt, ...);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user