mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-21 21:26:11 +01:00
13 lines
337 B
C++
13 lines
337 B
C++
// This file is part of the mcl project.
|
|
// Copyright (c) 2022 merryhime
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#pragma once
|
|
|
|
#if defined(__clang) || defined(__GNUC__)
|
|
# define ASSUME(expr) [&] { if (!(expr)) __builtin_unreachable(); }()
|
|
#elif defined(_MSC_VER)
|
|
# define ASSUME(expr) __assume(expr)
|
|
#else
|
|
# define ASSUME(expr)
|
|
#endif
|