Kernel: Reduce code duplication in exception handlers.

This commit is contained in:
Andreas Kling 2019-02-20 12:28:41 +01:00
commit 809ffa56d7
Notes: sideshowbarker 2024-07-19 15:39:53 +09:00
2 changed files with 44 additions and 84 deletions

View file

@ -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;