mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Use SDL_FALLTHROUGH if available
The SDL_FALLTHROUGH macro has been added to SDL 2.0.18. Until 2.0.18 is released, use it if it's available.
This commit is contained in:
@@ -68,16 +68,6 @@ void _VVV_between(
|
||||
sizeof(middle) \
|
||||
)
|
||||
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_attribute(__fallthrough__)
|
||||
# define VVV_fallthrough __attribute__((__fallthrough__))
|
||||
#else
|
||||
# define VVV_fallthrough do { } while (false) /* fallthrough */
|
||||
#endif
|
||||
|
||||
#define MAYBE_FAIL(expr) \
|
||||
do \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user