Я читаю здесь, что это одна из самых неприятных ошибок в xcode, пожалуйста, помогите: У меня есть код, который я смог скомпилировать и запустить на Android, но не на iOS :Исследуемый идентификатор или '(' Функция указателя XCode C
ч файл:
typedef int (*encoding_function)(const short * a_input, unsigned char * a_output, const int a_len);
typedef int (*decoding_function)(unsigned char * a_input, short * a_output, const int a_len);
void set_encoding_func(encoding_function a_encoding_func);
void set_decoding_func(decoding_function a_decoding_func);
первый с файл:
decoding_function real_decoding_func;
void set_decoding_func(decoding_function a_decoding_func)
{
real_decoding_func = a_decoding_func;
}//- HERE IS THE ERROR!!!!!
второй с файл - НЕТ ОШИБКА !!!
encoding_function real_encoding_function;
void set_encoding_func(encoding_function a_encoding_func)
{
real_encoding_function = a_encoding_func;
}
EDIT: После удаления кода я получаю сообщение об ошибке «Ожидаемый неквалифицированный идентификатор».