1/*
2 * Copyright 2015 WebAssembly Community Group participants
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef wasm_compiler_support_h
18#define wasm_compiler_support_h
19
20#ifndef __has_feature
21#define __has_feature(x) 0
22#endif
23
24#ifndef __has_builtin
25#define __has_builtin(x) 0
26#endif
27
28#if __has_builtin(__builtin_unreachable)
29#define WASM_BUILTIN_UNREACHABLE __builtin_unreachable()
30#elif defined(_MSC_VER)
31#define WASM_BUILTIN_UNREACHABLE __assume(false)
32#endif
33
34#endif // wasm_compiler_support_h
35

source code of dart_sdk/third_party/binaryen/src/src/compiler-support.h