diff src/bytecode.c @ 4914:1628e3b9601a

When aborting due to unknown opcode, output more descriptive msg -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-02-02 Ben Wing <ben@xemacs.org> * bytecode.c (execute_rare_opcode): * lisp.h (abort_with_msg): New. When aborting due to unknown opcode, output more descriptive msg.
author Ben Wing <ben@xemacs.org>
date Tue, 02 Feb 2010 15:19:15 -0600
parents 6bc1f3f6cf0d
children 17362f371cc2
line wrap: on
line diff
--- a/src/bytecode.c	Mon Feb 01 23:14:46 2010 -0600
+++ b/src/bytecode.c	Tue Feb 02 15:19:15 2010 -0600
@@ -1738,7 +1738,11 @@
       }
 
     default:
-      ABORT();
+      {
+	Ascbyte msg[100];
+	sprintf (msg, "Unknown opcode %d", opcode);
+	abort_with_msg (msg);
+      }
       break;
     }
   return stack_ptr;