[plt-scheme] scheme_signal_error
Hi,
I've played around with scheme_signal_error and went thru a weird "behavior"
with this code snippet :
Scheme_Object* foo(void* p, int argc, Scheme_Object** argv) {
Scheme_Object* tmp = argv[O];
while(!SCHEME_NULLP(tmp)) {
if(bar(SCHEME_CAR(tmp))==BAD_INPUT)
scheme_signal_error("Bad Input");
tmp=SCHEME_CDR(tmp);
}
return scheme_true;
}
scheme_signal_error seems to "throw" a Page Fault Exception (tested under
Windows only). But it worked elsewhere. bar function content is irrelevant. Is
my code bad or ... ?
Thanx.
PS: if also tested with while(SCHEME_PAIRP(tmp)) without much more success.