/* * GraphLCD plugin for the Video Disk Recorder * * global.h - global definitions * * This file is released under the GNU General Public License. Refer * to the COPYING file distributed with this package. * * (c) 2001-2004 Carsten Siebholz * (c) 2004 Andreas Regel */ #ifndef _GRAPHLCD_GLOBAL_H_ #define _GRAPHLCD_GLOBAL_H_ #include #include #define PLUGIN_NAME "graphlcd" #define SPACEWIDTH 2 #define FREENULL(p) (free (p), p = NULL) template inline void clip(T & value, T min, T max) { if (value < min) value = min; if (value > max) value = max; } #endif