Add NZV() macro for checking a char* points to a non-empty string.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1493 ea778897-0a13-0410-b9d1-a72fbfd435f5master
parent
56404160de
commit
561bfc46aa
|
@ -25,6 +25,10 @@
|
|||
#ifndef GEANY_UTILS_H
|
||||
#define GEANY_UTILS_H 1
|
||||
|
||||
// Returns: TRUE if ptr points to a non-zero value.
|
||||
#define NZV(ptr) \
|
||||
((ptr) && (ptr)[0])
|
||||
|
||||
|
||||
void utils_start_browser(const gchar *uri);
|
||||
|
||||
|
|
Loading…
Reference in New Issue