LibGC: Enable EXPLICIT_SYMBOL_EXPORT

This commit is contained in:
ayeteadoe 2025-06-28 01:34:31 -07:00 committed by Andrew Kaster
commit 83846b3861
Notes: github-actions[bot] 2025-06-30 16:51:58 +00:00
18 changed files with 22 additions and 24 deletions

View file

@ -13,7 +13,7 @@
namespace GC {
class HeapBase {
class GC_API HeapBase {
AK_MAKE_NONCOPYABLE(HeapBase);
AK_MAKE_NONMOVABLE(HeapBase);
@ -29,12 +29,12 @@ protected:
void* m_private_data;
};
class HeapBlockBase {
class GC_API HeapBlockBase {
AK_MAKE_NONMOVABLE(HeapBlockBase);
AK_MAKE_NONCOPYABLE(HeapBlockBase);
public:
GC_API static size_t block_size;
static size_t block_size;
static HeapBlockBase* from_cell(Cell const* cell)
{
return reinterpret_cast<HeapBlockBase*>(bit_cast<FlatPtr>(cell) & ~(HeapBlockBase::block_size - 1));