00001
00002
00003
00004
00005
00006
00007 #ifndef USE_LOCAL_ARRAYS
00008 #define USE_LOCAL_ARRAYS false
00009 #endif
00010
00011 #if USE_LOCAL_ARRAYS
00012
00013
00014
00015
00016
00017 #define LOCAL_ARRAY_NAME(x) x ## values
00018 #define LOCAL_INT_ARRAY(x) int* const LOCAL_ARRAY_NAME(x) = x .values();
00019 #define CONST_LOCAL_INT_ARRAY(x) int const * const LOCAL_ARRAY_NAME(x) = x .values();
00020 #define GET(x,index) LOCAL_ARRAY_NAME(x) [index]
00021 #define SET(x,index,value) LOCAL_ARRAY_NAME(x) [index] = value;
00022
00023 #else // ! USE_LOCAL_ARRAYS
00024 #define LOCAL_ARRAY_NAME(x) x
00025 #define LOCAL_INT_ARRAY(x)
00026 #define CONST_LOCAL_INT_ARRAY(x)
00027 #define GET(x,index) x [index]
00028 #define SET(x,index,value) x .setElement(index, value)
00029 #endif
00030
00031