mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
utils: Define DESTROY_*_IF() macros without terminating semicolon
This avoids double semicolons (i.e. empty statements) and is how DESTROY_IF() is already defined.
This commit is contained in:
parent
b21178b43c
commit
a380dc4989
@ -31,12 +31,12 @@
|
|||||||
/**
|
/**
|
||||||
* Call offset destructor of an object, if object != NULL
|
* Call offset destructor of an object, if object != NULL
|
||||||
*/
|
*/
|
||||||
#define DESTROY_OFFSET_IF(obj, offset) if (obj) obj->destroy_offset(obj, offset);
|
#define DESTROY_OFFSET_IF(obj, offset) if (obj) obj->destroy_offset(obj, offset)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call function destructor of an object, if object != NULL
|
* Call function destructor of an object, if object != NULL
|
||||||
*/
|
*/
|
||||||
#define DESTROY_FUNCTION_IF(obj, fn) if (obj) obj->destroy_function(obj, fn);
|
#define DESTROY_FUNCTION_IF(obj, fn) if (obj) obj->destroy_function(obj, fn)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Object allocation/initialization macro, using designated initializer.
|
* Object allocation/initialization macro, using designated initializer.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user