mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
27478ec7d4
The following command was used to clang-format these files: clang-format-19 -i $(find . \ -not \( -path "./\.*" -prune \) \ -not \( -path "./Build/*" -prune \) \ -not \( -path "./Toolchain/*" -prune \) \ -type f -name "*.cpp" -o -name "*.mm" -o -name "*.h")
15 lines
314 B
C++
15 lines
314 B
C++
/*
|
|
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "TestHeap.h"
|
|
#include <LibGC/Heap.h>
|
|
|
|
GC::Heap& test_gc_heap()
|
|
{
|
|
// FIXME: The GC heap should become thread aware!
|
|
thread_local GC::Heap heap(nullptr, [](auto&) { });
|
|
return heap;
|
|
}
|