Hi,
I'm using Squirrel for a ARM cortex debug tool where all the device related stuff is done in Squirrel.
I have defined a list of generic errors as constants but I can't throw constants, why is that?
e.g.
const myError = -1;
function myFunc()
{
try{
throw myError;
}
catch(e){
printf("Error %d", e);
}
}
but myError <- -1; works
Thanks!