mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
11 lines
320 B
C++
11 lines
320 B
C++
#pragma once
|
|
|
|
namespace asst::utils
|
|
{
|
|
template <typename... Unused>
|
|
constexpr bool always_false = false;
|
|
}
|
|
|
|
// delete instantiation of template with message, when static_assert(false, Message) does not work
|
|
#define ASST_STATIC_ASSERT_FALSE(Message, ...) static_assert(::asst::utils::always_false<__VA_ARGS__>, Message);
|