00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CSL_DEFS_H__
00020 #define __CSL_DEFS_H__
00021
00022 #include <csl/cslconfig.h>
00023
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027
00034
00035
00040 #ifndef NULL
00041 #define NULL ((void*) 0)
00042 #endif
00043
00048 #ifndef TRUE
00049 #define TRUE (!FALSE)
00050 #endif
00051
00056 #ifndef FALSE
00057 #define FALSE (0)
00058 #endif
00059
00067 #ifndef MAX
00068 #define MAX(a, b) ((a) > (b) ? (a) : (b))
00069 #endif
00070
00078 #ifndef MIN
00079 #define MIN(a, b) ((a) > (b) ? (b) : (a))
00080 #endif
00081
00092 #ifndef CLAMP
00093 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
00094 #endif
00095
00103 #define CSL_BREAKPOINT() ((void) raise (5 ))
00104
00105
00106
00111 typedef int CslBool;
00112
00117 typedef int CslByte;
00118
00119 #ifdef __cplusplus
00120 }
00121 #endif
00122
00123 #endif