mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-07 00:20:07 +01:00
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")
16 lines
314 B
C++
16 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;
|
|
}
|