mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibGC: Enable EXPLICIT_SYMBOL_EXPORT
This commit is contained in:
parent
1d62bf7049
commit
83846b3861
Notes:
github-actions[bot]
2025-06-30 16:51:58 +00:00
Author: https://github.com/ayeteadoe
Commit: 83846b3861
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5215
Reviewed-by: https://github.com/ADKaster ✅
18 changed files with 22 additions and 24 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue