added ABS and CLAMP macros

SVN revision: 12139
This commit is contained in:
tsauerbeck 2004-11-03 19:23:18 +00:00 committed by tsauerbeck
parent f6d680ad4b
commit 288842f199
1 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,14 @@ extern "C" {
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#endif
#ifndef ABS
#define ABS(x) ((x) < 0 ? -(x) : (x))
#endif
#ifndef CLAMP
#define CLAMP(x, min, max) (((x) > (max)) ? (max) : (((x) < (min)) ? (min) : (x)))
#endif
#define ECORE_EVENT_NONE 0
#define ECORE_EVENT_EXE_EXIT 1 /**< Spawned Exe has exit event */
#define ECORE_EVENT_SIGNAL_USER 2 /**< User signal event */