mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-28 21:17:33 +00:00
Add fallthrough macro
This commit is contained in:
@@ -43,7 +43,11 @@
|
|||||||
*/
|
*/
|
||||||
#ifndef STA_UNREACHABLE
|
#ifndef STA_UNREACHABLE
|
||||||
# define STA_UNREACHABLE() __builtin_unreachable()
|
# define STA_UNREACHABLE() __builtin_unreachable()
|
||||||
#endif // STA_UNREACHABLE
|
#endif // !STA_UNREACHABLE
|
||||||
|
|
||||||
|
#ifndef STA_FALLTRHOUGH
|
||||||
|
# define STA_FALLTHROUGH() __attribute__((fallthrough))
|
||||||
|
#endif // !STA_FALLTRHOUGH
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_LANG_HPP
|
#endif // STA_LANG_HPP
|
||||||
|
Reference in New Issue
Block a user