diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-19 09:01:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-19 09:28:17 +0300 |
commit | 14b2a35c8bfd6d77f6357f929ddd82845436725f (patch) | |
tree | 54746d6a3cf0da24b95d2a9761e6222656eb5249 /intern/guardedalloc/MEM_guardedalloc.h | |
parent | 17a2820da8ad8ea23d336129f32e060e5746b047 (diff) |
Cleanup: use parenthesis for if statements in macros
Diffstat (limited to 'intern/guardedalloc/MEM_guardedalloc.h')
-rw-r--r-- | intern/guardedalloc/MEM_guardedalloc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index 78e629a6971..f12eb0ac340 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -243,8 +243,9 @@ void MEM_use_guarded_allocator(void); } \ void operator delete(void *mem) \ { \ - if (mem) \ + if (mem) { \ MEM_freeN(mem); \ + } \ } \ void *operator new[](size_t num_bytes) \ { \ @@ -252,8 +253,9 @@ void MEM_use_guarded_allocator(void); } \ void operator delete[](void *mem) \ { \ - if (mem) \ + if (mem) { \ MEM_freeN(mem); \ + } \ } \ void *operator new(size_t /*count*/, void *ptr) \ { \ |