C/C++ Setvect question

Newbie Member
30Apr2010,12:01   #1
su817200's Avatar
Dear Friend,
I got the following build error while compiling the ->Could you please help

void PC_VectSet (INT8U vect, void (*isr)(void))
{
setvect(vect, (void interrupt (*)(void))isr); /*Error in this line*/
}

error C2059: syntax error : ')'

Rgds,
Mentor
3May2010,12:07   #2
xpi0t0s's Avatar
What happens if you don't cast it, i.e.:
Code:
setvect(vect, isr);