mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:37:44 +00:00
Kernel: Reduce code duplication in exception handlers.
This commit is contained in:
parent
9763eb44f9
commit
809ffa56d7
2 changed files with 44 additions and 84 deletions
|
@ -171,6 +171,16 @@ template<class T> struct RemovePointer<T* const> { typedef T Type; };
|
|||
template<class T> struct RemovePointer<T* volatile> { typedef T Type; };
|
||||
template<class T> struct RemovePointer<T* const volatile> { typedef T Type; };
|
||||
|
||||
template<typename T, typename U>
|
||||
struct IsSame {
|
||||
enum { value = 0 };
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct IsSame<T, T> {
|
||||
enum { value = 1 };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
using AK::min;
|
||||
|
@ -180,4 +190,4 @@ using AK::forward;
|
|||
using AK::exchange;
|
||||
using AK::swap;
|
||||
using AK::ceil_div;
|
||||
|
||||
using AK::IsSame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue