Advertisement
Tainel

src/base/features/attributes.hpp

May 14th, 2023 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | Source Code | 0 0
  1. #pragma once
  2.  
  3. // Indicate that the fall-through from the preceding case label is intentional.
  4. #define FALL [[fallthrough]]
  5.  
  6. // Indicate that the entity might be unused.
  7. #define UNUSED [[maybe_unused]]
  8.  
  9. // Indicate that the function does not return.
  10. #define NORETURN [[noreturn]]
  11.  
  12. // Indicate that the paths of execution including the statement are more or
  13. // less likely respectively than other paths that don't include it.
  14. #define LIKELY [[likely]]
  15. #define UNLIKELY [[unlikely]]
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement