LibJS: Add RawNonnullGCPtr<T>

This is really just a type alias for NonnullGCPtr<T>, but it provides
a way to have non-owning non-visited NonnullGCPtr<T> without getting
yelled at by the Clang plugin for catching GC errors.
This commit is contained in:
Andreas Kling 2024-11-11 15:51:30 +01:00 committed by Andreas Kling
commit 6a6618f5ea
Notes: github-actions[bot] 2024-11-11 20:42:05 +00:00
2 changed files with 6 additions and 1 deletions

View file

@ -190,6 +190,10 @@ private:
template<typename T>
using RawGCPtr = GCPtr<T>;
// Non-Owning NonnullGCPtr
template<typename T>
using RawNonnullGCPtr = NonnullGCPtr<T>;
template<typename T, typename U>
inline bool operator==(GCPtr<T> const& a, GCPtr<U> const& b)
{