typedef struct { unsigned char a ; unsigned char b ; unsigned char array[10] ; } dummyType ; @eeprom dummyType dummy ; void sampleFunction(unsigned char index) { #define OKCODE 0 #if(OKCODE) @eeprom unsigned char *cptr = &dummy.array[index] ; (*cptr)++ ; #else dummy.array[index]++ ; #endif }