mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
29 lines
503 B
C
29 lines
503 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 2014-2018, RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef HELPERS_H
|
|
#define HELPERS_H
|
|
|
|
#ifdef __GNUC__
|
|
/* GCC or compatible */
|
|
#define noreturn_ __attribute__ ((noreturn))
|
|
#define unused_ __attribute__ ((unused))
|
|
#define trap_ __builtin_trap()
|
|
#else
|
|
/* Unsupported, but no need to throw a fit */
|
|
#define noreturn_
|
|
#define unused_
|
|
#define trap_
|
|
#endif
|
|
|
|
#ifndef DEVELOP
|
|
#define DEVELOP 0
|
|
#endif
|
|
|
|
#endif /* HELPERS_H */
|