mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Move compiletime_fail to StdLibExtras.h
This function will be used in the next commit in "BigIntBase.h".
This commit is contained in:
parent
1fec1741b9
commit
2a6f5ff441
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/DanShaders Commit: https://github.com/SerenityOS/serenity/commit/2a6f5ff441 Pull-request: https://github.com/SerenityOS/serenity/pull/17330 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/Hendiadyoin1
2 changed files with 3 additions and 3 deletions
|
@ -40,9 +40,6 @@ struct Array {
|
||||||
T __data[Size];
|
T __data[Size];
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename... Args>
|
|
||||||
void compiletime_fail(Args...);
|
|
||||||
|
|
||||||
template<size_t N>
|
template<size_t N>
|
||||||
consteval auto extract_used_argument_index(char const (&fmt)[N], size_t specifier_start_index, size_t specifier_end_index, size_t& next_implicit_argument_index)
|
consteval auto extract_used_argument_index(char const (&fmt)[N], size_t specifier_start_index, size_t specifier_end_index, size_t& next_implicit_argument_index)
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,9 @@ requires(AK::Detail::IsIntegral<T>)
|
||||||
return value && !((value) & (value - 1));
|
return value && !((value) & (value - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename... Args>
|
||||||
|
void compiletime_fail(Args...);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !USING_AK_GLOBALLY || defined(AK_DONT_REPLACE_STD)
|
#if !USING_AK_GLOBALLY || defined(AK_DONT_REPLACE_STD)
|
||||||
|
|
Loading…
Reference in a new issue