mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 19:00:59 +00:00
LibGC: Add the minimum export macros required to link LibJS
This approach still requires the WINDOWS_EXPORT_ALL_SYMBOLS target property, but it does let us run a lot more tests than before.
This commit is contained in:
parent
d5cb940fe0
commit
f669af3a5c
Notes:
github-actions[bot]
2025-05-29 09:27:56 +00:00
Author: https://github.com/R-Goc
Commit: f669af3a5c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4774
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/trflynn89
2 changed files with 6 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <LibGC/Export.h>
|
||||
#include <LibGC/Forward.h>
|
||||
|
||||
namespace GC {
|
||||
|
@ -33,7 +34,7 @@ class HeapBlockBase {
|
|||
AK_MAKE_NONCOPYABLE(HeapBlockBase);
|
||||
|
||||
public:
|
||||
static size_t block_size;
|
||||
GC_API 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