-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrb_vm.error.c
More file actions
47 lines (36 loc) · 1.08 KB
/
rb_vm.error.c
File metadata and controls
47 lines (36 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* -MODULE----------------------------------------------------------------------
RapidBATCH
Copyright (C) 2008, 2009 by Phorward Software Technologies, Jan Max Meyer
http://www.phorward-software.com ++ mail@phorward-software.com
File: rb_vm.error.c
Author: Jan Max Meyer
Usage: Virtual machine error messaging
----------------------------------------------------------------------------- */
/*
* Includes
*/
/* #define __WITH_TRACE */
#include "rb_global.h"
/*
* Global variables
*/
/*
* Defines
*/
/*
* Functions
*/
/* -FUNCTION--------------------------------------------------------------------
Function: rb_vm_error()
Author: Jan Max Meyer
Usage: Virtual machine runtime error reporting and abort.
Parameters: char* msg Error message identifier
Returns: void
~~~ CHANGES & NOTES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Date: Author: Note:
----------------------------------------------------------------------------- */
void rb_vm_error( char* msg )
{
fprintf( stderr, "\n*** RUNTIME ERROR ***\n%s\n\naborting...", msg );
exit( 1 );
}