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:
Antonio Niño Díaz
2018-04-02 00:39:12 +01:00
parent 95ccc48d0c
commit 0ae69b3114
4 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "extern/stdnoreturn.h"
#include "helpers.h"
struct sOptions {
char binary[2];

View File

@@ -17,7 +17,7 @@
#include <stdarg.h>
#include "extern/stdnoreturn.h"
#include "helpers.h"
#define warn rgbds_warn
#define vwarn rgbds_vwarn

View File

@@ -6,8 +6,8 @@
* SPDX-License-Identifier: MIT
*/
#ifndef EXTERN_STDNORETURN_H
#define EXTERN_STDNORETURN_H
#ifndef HELPERS_H
#define HELPERS_H
#if defined(__STDC_VERSION__)
#if __STDC_VERSION__ >= 201112L
@@ -35,4 +35,4 @@
#define noreturn
#endif
#endif /* EXTERN_STDNORETURN_H */
#endif /* HELPERS_H */

View File

@@ -11,7 +11,7 @@
#include <stdint.h>
#include "extern/stdnoreturn.h"
#include "helpers.h"
noreturn void script_fatalerror(const char *fmt, ...);