mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +00:00
LibJS: Force a semicolon after JS_{DECLARE,DEFINE}_ALLOCATOR()
This matches the style of other macros, and prevents IDEs from flagging the semicolon as unnecessary.
This commit is contained in:
parent
d47f656a3a
commit
edf484a5ab
Notes:
sideshowbarker
2024-07-17 07:20:57 +09:00
Author: https://github.com/mattco98
Commit: edf484a5ab
Pull-request: https://github.com/SerenityOS/serenity/pull/23878
Issue: https://github.com/SerenityOS/serenity/issues/23805
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@
|
|||
#include <LibJS/Heap/HeapBlock.h>
|
||||
|
||||
#define JS_DECLARE_ALLOCATOR(ClassName) \
|
||||
static JS::TypeIsolatingCellAllocator<ClassName> cell_allocator;
|
||||
static JS::TypeIsolatingCellAllocator<ClassName> cell_allocator
|
||||
|
||||
#define JS_DEFINE_ALLOCATOR(ClassName) \
|
||||
JS::TypeIsolatingCellAllocator<ClassName> ClassName::cell_allocator { #ClassName };
|
||||
JS::TypeIsolatingCellAllocator<ClassName> ClassName::cell_allocator { #ClassName }
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue