Ticket #47: const_string.patch
File const_string.patch, 1.0 KB (added by doughera@…, 13 years ago) |
---|
-
src/exceptions.c
old new 195 195 STRING * const message = VTABLE_get_string(interp, exception); 196 196 const INTVAL severity = VTABLE_get_integer_keyed_str(interp, exception, CONST_STRING(interp, "severity")); 197 197 if (severity < EXCEPT_error) { 198 PMC *resume = VTABLE_get_attr_str(interp, exception, 199 CONST_STRING(interp, "resume")); 198 PMC *resume = VTABLE_get_attr_str(interp, exception, CONST_STRING(interp, "resume")); 200 199 if (string_equal(interp, message, CONST_STRING(interp, "")) == 1) { 201 200 Parrot_io_eprintf(interp, "%S\n", message); 202 201 } … … 206 205 207 206 /* caution against output swap (with PDB_backtrace) */ 208 207 fflush(stderr); 209 / /PDB_backtrace(interp);208 /* PDB_backtrace(interp); */ 210 209 211 210 if (!PMC_IS_NULL(resume)) { 212 211 return VTABLE_invoke(interp, resume, NULL);