blob: a2f031d7e44464e36e0947d3c6baedcbbeb6cd5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* 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.siebholz AT t-online.de>
* (c) 2004 Andreas Regel <andreas.regel AT powarman.de>
*/
#ifndef _GRAPHLCD_GLOBAL_H_
#define _GRAPHLCD_GLOBAL_H_
#include <stdlib.h>
template<class T> inline void clip(T & value, T min, T max)
{
if (value < min) value = min;
if (value > max) value = max;
}
#endif
|