mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 23:50:00 +01:00
block_of_code: Use variable template variants of type traits
Now all type traits are using the variable template variants where applicable.
This commit is contained in:
parent
aba4d8a59f
commit
3a9c2f81d0
@ -68,7 +68,7 @@ public:
|
|||||||
/// Code emitter: Calls the function
|
/// Code emitter: Calls the function
|
||||||
template <typename FunctionPointer>
|
template <typename FunctionPointer>
|
||||||
void CallFunction(FunctionPointer fn) {
|
void CallFunction(FunctionPointer fn) {
|
||||||
static_assert(std::is_pointer<FunctionPointer>() && std::is_function<std::remove_pointer_t<FunctionPointer>>(),
|
static_assert(std::is_pointer_v<FunctionPointer> && std::is_function_v<std::remove_pointer_t<FunctionPointer>>,
|
||||||
"Supplied type must be a pointer to a function");
|
"Supplied type must be a pointer to a function");
|
||||||
|
|
||||||
const u64 address = reinterpret_cast<u64>(fn);
|
const u64 address = reinterpret_cast<u64>(fn);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user