mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Add debug_break() to default case in VM_Execute()
git-svn-id: https://svn.eduke32.com/eduke32@7087 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9079beadb4
commit
82fcd89ed5
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
# include "lunatic_game.h"
|
||||
#endif
|
||||
|
||||
#include "debugbreak.h"
|
||||
|
||||
#if KRANDDEBUG
|
||||
# define GAMEEXEC_INLINE
|
||||
# define GAMEEXEC_STATIC
|
||||
|
@ -5841,6 +5843,7 @@ GAMEEXEC_STATIC void VM_Execute(native_t loop)
|
|||
continue;
|
||||
|
||||
default: // you aren't supposed to be here!
|
||||
debug_break();
|
||||
VM_ScriptInfo(insptr, 64);
|
||||
G_GameExit("An error has occurred in the " APPNAME " virtual machine.\n\n"
|
||||
"If you are an end user, please e-mail the file " APPBASENAME ".log\n"
|
||||
|
|
Loading…
Reference in a new issue