mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-13 16:07:36 +00:00
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:
parent
5b171bf2c5
commit
53129e92af
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define STR_IS_NULL_OR_EMPTY(x) ((x) == NULL || (x)[0] == '\0')
|
||||
|
||||
/*
|
||||
* For defining simple interface functions
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue