diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-10 14:52:47 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-10 14:52:47 +0000 |
| commit | 32ec1162bf467359ed47ba0bd4e74ec0c7fbd167 (patch) | |
| tree | 2d33bba58758edca8171b7f70f9ac2ec6c800e41 /src/threading.cpp | |
| parent | 7cc265e14ce3ec08a5908d31441000bdcb4ac645 (diff) | |
Use more `{}` ctor
Diffstat (limited to 'src/threading.cpp')
| -rw-r--r-- | src/threading.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index e848bba00..50d0dfed1 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -98,8 +98,8 @@ struct MutexGuard { RecursiveMutex *rm; }; -#define MUTEX_GUARD_BLOCK(m) if (MutexGuard GB_DEFER_3(_mutex_guard_) = m) -#define MUTEX_GUARD(m) MutexGuard GB_DEFER_3(_mutex_guard_) = m +#define MUTEX_GUARD_BLOCK(m) if (MutexGuard GB_DEFER_3(_mutex_guard_){m}) +#define MUTEX_GUARD(m) MutexGuard GB_DEFER_3(_mutex_guard_){m} #if defined(GB_SYSTEM_WINDOWS) |