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-a72fbfd435f5
master
Nick Treleaven 2007-04-30 16:16:15 +00:00
parent 56404160de
commit 561bfc46aa
1 changed files with 4 additions and 0 deletions

View File

@ -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);