light/modules/lsd/utils.cppm

31 lines
502 B
Text
Raw Normal View History

2025-11-17 13:17:05 +03:30
export module lsd.utils;
import std;
export namespace lt::lsd {
[[noreturn]] void unreachable() noexcept
{
#if defined(__clang__) || defined(__GNUC__)
__builtin_unreachable();
#elif defined(_MSC_VER)
std::terminate();
__assume(0);
#else
std::terminate();
#endif
}
// NOLINTBEGIN
2025-11-18 19:06:44 +03:30
using ::std::bit_cast;
2025-11-17 13:17:05 +03:30
using ::std::declval;
using ::std::format;
using ::std::forward;
using ::std::move;
using ::std::println;
2025-11-18 19:06:44 +03:30
using ::std::system;
using ::std::to_underlying;
2025-11-17 13:17:05 +03:30
// NOLINTEND
} // namespace lt::lsd