Add fallthrough macro

This commit is contained in:
Henrik Stickann 2022-04-24 14:50:55 +02:00
parent ecfad2e768
commit cfbf6f4ce2

View File

@ -43,7 +43,11 @@
*/
#ifndef STA_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