util: Add STR_IS_NULL_OR_EMPTY macro
Shamelessly copied from https://gitlab.gnome.org/World/Phosh/phosh/-/blob/main/src/util.h#L13
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define STR_IS_NULL_OR_EMPTY(x) ((x) == NULL || (x)[0] == '\0')
|
||||
|
||||
/*
|
||||
* For defining simple interface functions
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user