3 * Copyright (C) 2008 The Geeqie Team
5 * Authors: Vladimir Nadvornik, Laurent Monin
7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
17 static gint debug_level = DEBUG_LEVEL_MIN;
20 gint get_debug_level(void)
25 void set_debug_level(gint new_level)
27 debug_level = CLAMP(new_level, DEBUG_LEVEL_MIN, DEBUG_LEVEL_MAX);
30 void debug_level_add(gint delta)
32 set_debug_level(debug_level + delta);
35 gint required_debug_level(gint level)
37 return (debug_level >= level);