mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-09-28 17:27:23 +02:00
bf2f33f1ca
This function doesn't return, so we mark it as noreturn if the compiler supports it.
14 lines
286 B
C
14 lines
286 B
C
#ifndef VVV_EXIT_H
|
|
#define VVV_EXIT_H
|
|
|
|
#ifdef __GNUC__
|
|
# define VVV_NORETURN __attribute__((noreturn))
|
|
#elif defined(_MSC_VER)
|
|
# define VVV_NORETURN __declspec(noreturn)
|
|
#else
|
|
# define VVV_NORETURN
|
|
#endif
|
|
|
|
VVV_NORETURN void VVV_exit(const int exit_code);
|
|
|
|
#endif /* VVV_EXIT_H */
|