1 /* SPDX-License-Identifier: MIT */
3 * Define tcg_debug_assert
4 * Copyright (c) 2008 Fabrice Bellard
7 #ifndef TCG_DEBUG_ASSERT_H
8 #define TCG_DEBUG_ASSERT_H
10 #if defined CONFIG_DEBUG_TCG || defined QEMU_STATIC_ANALYSIS
11 # define tcg_debug_assert(X) do { assert(X); } while (0)
13 # define tcg_debug_assert(X) \
14 do { if (!(X)) { __builtin_unreachable(); } } while (0)