mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 22:34:21 +03:00
Add noreturn qualifier to VVV_exit
This function doesn't return, so we mark it as noreturn if the compiler supports it.
This commit is contained in:
1 parent
b2d7a0b4b6
commit
bf2f33f1ca
1 file changed
+9
-1
@@ -1,6 +1,14 @@
|
|||||||
#ifndef VVV_EXIT_H
|
#ifndef VVV_EXIT_H
|
||||||
#define VVV_EXIT_H
|
#define VVV_EXIT_H
|
||||||
|
|
||||||
void VVV_exit(const int exit_code);
|
#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 */
|
#endif /* VVV_EXIT_H */
|
||||||
Reference in new issue
Block a user