mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
fix(memory): missing parenthesis in NEW_ZERO macro
This commit is contained in:
parent
29504272e5
commit
4e116bd69a
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
#define FREE(ptr) SMemFree(ptr, __FILE__, __LINE__, 0x0)
|
#define FREE(ptr) SMemFree(ptr, __FILE__, __LINE__, 0x0)
|
||||||
|
|
||||||
#define NEW(T, ...) (new (SMemAlloc(sizeof(T), __FILE__, __LINE__, 0)) T(__VA_ARGS__))
|
#define NEW(T, ...) (new (SMemAlloc(sizeof(T), __FILE__, __LINE__, 0)) T(__VA_ARGS__))
|
||||||
#define NEW_ZERO(T, ...) (new (SMemAlloc(sizeof(T), __FILE__, __LINE__, 0x8) T(__VA_ARGS__))
|
#define NEW_ZERO(T, ...) (new (SMemAlloc(sizeof(T), __FILE__, __LINE__, 0x8)) T(__VA_ARGS__))
|
||||||
#define DEL(ptr) \
|
#define DEL(ptr) \
|
||||||
do { \
|
do { \
|
||||||
if (ptr) { \
|
if (ptr) { \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue