dubug functions

hi everyone i am trying to right a debug funtion SIGNAL as

SIGNAL void function (void)
{
PORT0 = ~ PORT0;
twatch(1000);
}

But when i compile it it gives error

 ****error 6;line 10; syntex error

can anyone figure it out

More questions in this forum