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:
Matthew Olsson 2024-04-06 09:40:02 -07:00 committed by Andreas Kling
parent d47f656a3a
commit edf484a5ab

View file

@ -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 {