mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-02 21:34:16 +00:00
Use do {} while(0) for c_kzg_free macro (#245)
This commit is contained in:
parent
9fbe75f392
commit
7695db3330
@ -39,10 +39,10 @@
|
||||
* c_kzg_free() macro sets the pointer value to NULL after freeing it.
|
||||
*/
|
||||
#define c_kzg_free(p) \
|
||||
(void)({ \
|
||||
do { \
|
||||
free(p); \
|
||||
(p) = NULL; \
|
||||
})
|
||||
} while (0)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Types
|
||||
|
Loading…
x
Reference in New Issue
Block a user