Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
4913:fc28cc192c91 | 4914:1628e3b9601a |
---|---|
1736 throw_or_bomb_out (TOP, arg, 0, Qnil, Qnil); | 1736 throw_or_bomb_out (TOP, arg, 0, Qnil, Qnil); |
1737 break; | 1737 break; |
1738 } | 1738 } |
1739 | 1739 |
1740 default: | 1740 default: |
1741 ABORT(); | 1741 { |
1742 Ascbyte msg[100]; | |
1743 sprintf (msg, "Unknown opcode %d", opcode); | |
1744 abort_with_msg (msg); | |
1745 } | |
1742 break; | 1746 break; |
1743 } | 1747 } |
1744 return stack_ptr; | 1748 return stack_ptr; |
1745 } | 1749 } |
1746 | 1750 |