fallthrough.hpp 347 Bytes
Newer Older
Paul's avatar
Paul committed
1
2
3
#ifndef MIGRAPH_GUARD_FALLTHROUGH_HPP
#define MIGRAPH_GUARD_FALLTHROUGH_HPP

4
5
#include <migraph/config.hpp>

6
7
namespace migraph {
inline namespace MIGRAPH_INLINE_NS {
Paul's avatar
Paul committed
8
9
10
11
12
13
14

#ifdef __clang__
#define MIGRAPH_FALLTHROUGH [[clang::fallthrough]]
#else
#define MIGRAPH_FALLTHROUGH
#endif

15
} // inline namespace MIGRAPH_INLINE_NS
Paul's avatar
Paul committed
16
17
18
} // namespace migraph

#endif