]> Pileus Git - lackey/blobdiff - src/util.h
Add event selection to day and week views
[lackey] / src / util.h
index 97f0da6803b343bcabcd2a646b768d4c50b53713..4f5d16e7dd0610658163448513780fbc0e02202d 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 /* Macros */
  */
 
 /* Macros */
+#define ABS(a)   ((a) > 0 ? (a) : -(a))
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 #define CLAMP(x,l,h) MIN(MAX(x,l),h)
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 #define CLAMP(x,l,h) MIN(MAX(x,l),h)