I want to initialize a array. But ı have two different initial values in compile time. So I want to do it in precompile time. My code is
static const U8 userFont[8][8] =
{
#if (LCD_LANGUAGE == LANG_1)
{ 0x0E, 0x09, 0x09, 0x1D, 0x09, 0x09, 0x0E, 0x00 },
{ 0x03, 0x0E, 0x11, 0x10, 0x10, 0x11, 0x0E, 0x00 },
{ 0x09, 0x06, 0x0F, 0x01, 0x02, 0x04, 0x0F, 0x00 },
{ 0x0E, 0x11, 0x10, 0x10, 0x15, 0x0E, 0x04, 0x00 },
{ 0x11, 0x0E, 0x11, 0x10, 0x10, 0x11, 0x0E, 0x00 },
{ 0x19, 0x06, 0x09, 0x04, 0x02, 0x09, 0x06, 0x00 },
{ 0x00, 0x01, 0x01, 0x01, 0x01, 0x03, 0x03, 0x03 },
{ 0x03, 0x03, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01 }
#elif (LCD_LANGUAGE == LANG_2)
{ 0x0A, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0E, 0x00 },
{ 0x04, 0x00, 0x1E, 0x04, 0x04, 0x04, 0x1E, 0x00 },
{ 0x0A, 0x00, 0x0E, 0x11, 0x11, 0x11, 0x0E, 0x00 },
{ 0x0E, 0x11, 0x10, 0x10, 0x11, 0x0E, 0x04, 0x00 },
{ 0x0F, 0x10, 0x10, 0x0E, 0x01, 0x1E, 0x04, 0x00 },
{ 0x0E, 0x00, 0x0F, 0x10, 0x17, 0x11, 0x0F, 0x00 },
{ 0x01, 0x01, 0x01, 0x01, 0x01, 0x03, 0x03, 0x03 },
{ 0x03, 0x03, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01 }
#endif
};
But I get this error : "expected an expression". Error given at the end of array. So how can I solve this problem?