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
6
#include <migraph/config.hpp>

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

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

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

#endif