diff options
author | /dev/humancontroller <devhc@example.com> | 2013-04-14 18:33:24 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-05-31 23:10:55 +0100 |
commit | dd66d8387deb9ced5887b0c883ff8ef046d81125 (patch) | |
tree | b1da1655648c0020914335028f0cc2b2f3d48e78 /src/qcommon | |
parent | 0832c673e66c2051a4be13015293e5ac90e3648f (diff) |
remove some redundant exit() calls
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/vm_powerpc.c | 6 | ||||
-rw-r--r-- | src/qcommon/vm_x86.c | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/qcommon/vm_powerpc.c b/src/qcommon/vm_powerpc.c index 2fde4310..cf7de30f 100644 --- a/src/qcommon/vm_powerpc.c +++ b/src/qcommon/vm_powerpc.c @@ -46,11 +46,7 @@ static clock_t time_total_vm = 0; #endif /* exit() won't be called but use it because it is marked with noreturn */ -#define DIE( reason ) \ - do { \ - Com_Error(ERR_DROP, "vm_powerpc compiler error: " reason); \ - exit(1); \ - } while(0) +#define DIE( reason ) Com_Error( ERR_DROP, "vm_powerpc compiler error: " reason ) /* * vm_powerpc uses large quantities of memory during compilation, diff --git a/src/qcommon/vm_x86.c b/src/qcommon/vm_x86.c index 9661d8d3..3650cc8c 100644 --- a/src/qcommon/vm_x86.c +++ b/src/qcommon/vm_x86.c @@ -385,7 +385,6 @@ Error handler for jump/call to invalid instruction number static void __attribute__((__noreturn__)) ErrJump(void) { Com_Error(ERR_DROP, "program tried to execute code outside VM"); - exit(1); } /* |