From 181e9c6d5d11cb1e5d36a2777eeb233ad8ed00e5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 9 Oct 2008 18:15:23 +0200 Subject: big pile of updates to match more what happened with libcanberra --- src/macro.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/macro.c (limited to 'src/macro.c') diff --git a/src/macro.c b/src/macro.c new file mode 100644 index 0000000..824fed1 --- /dev/null +++ b/src/macro.c @@ -0,0 +1,34 @@ +/*** + This file is part of libsydney. + + Copyright 2007-2008 Lennart Poettering + + libsydney is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 2.1 of the + License, or (at your option) any later version. + + libsydney is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with libsydney. If not, see + . +***/ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "macro.h" + +sa_bool_t sa_debug(void) { + const char *d; + + if ((d = getenv("SYDNEY_DEBUG"))) + return !!*d; + + return FALSE; +} -- cgit