Work on exception handling, especially around ratio arithmetic
Much simplified but will break things!
This commit is contained in:
parent
d2101dbd47
commit
70d176982b
14 changed files with 298 additions and 258 deletions
|
|
@ -346,7 +346,7 @@
|
|||
* true if `conspoint` points to some sort of a number cell,
|
||||
* else false
|
||||
*/
|
||||
#define numberp(conspoint) (check_tag(conspoint,INTEGERTAG)||check_tag(conspoint,RATIOTAG)||check_tag(conspoint,REALTAG)||check_tag(conspoint,BIGNUMTAG))
|
||||
#define numberp(conspoint) (check_tag(conspoint,INTEGERTAG)||check_tag(conspoint,RATIOTAG)||check_tag(conspoint,REALTAG))
|
||||
|
||||
/**
|
||||
* true if `conspoint` points to a sequence (list, string or, later, vector),
|
||||
|
|
@ -614,7 +614,7 @@ struct cons_space_object {
|
|||
*/
|
||||
struct cons_payload cons;
|
||||
/**
|
||||
* if tag == EXCEPTIONTAG
|
||||
* if tag == EXCEPTIONTAG || tag == LOOPXTAG
|
||||
*/
|
||||
struct exception_payload exception;
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -267,7 +267,6 @@ void dump_frame( URL_FILE * output, struct cons_pointer frame_pointer ) {
|
|||
|
||||
void dump_stack_trace( URL_FILE * output, struct cons_pointer pointer ) {
|
||||
if ( exceptionp( pointer ) ) {
|
||||
// todo: if the payload isn't a message, we maybe shouldn't print it?
|
||||
print( output, pointer2cell( pointer ).payload.exception.payload );
|
||||
url_fputws( L"\n", output );
|
||||
dump_stack_trace( output,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue