aboutsummaryrefslogtreecommitdiffstats
path: root/src/emc/nml_intf/interp_return.hh
blob: 73a600e3fa2b71077c4085990404f91cbc99c105 (plain)
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
/********************************************************************
* Description: interp_return.hh
*
*   Derived from a work by Thomas Kramer
*
* Author:
* License: GPL Version 2
* System: Linux
*    
* Copyright (c) 2005 All rights reserved.
*
* Last change:
*
* This file declares the public interpreter return values. An
* interpreter may extend this list with return values that are
* used internally within the interpreters own code, but these
* constitute the minimum set.
********************************************************************/
#ifndef INTERP_RETURN_H
#define INTERP_RETURN_H

enum InterpReturn {
    INTERP_OK = 0,
    INTERP_EXIT = 1,
    INTERP_EXECUTE_FINISH = 2,
    INTERP_ENDFILE = 3,
    INTERP_FILE_NOT_OPEN = 4,
    INTERP_ERROR = 5,
};

/*
The return values OK, EXIT, EXECUTE_FINISH, and ENDFILE represent
normal, non-error return conditions. FILE_NOT_OPEN is the first
value that represents an error result. INTERP_MIN_ERROR
is therefore the index of the last non-error return value.
*/

static const InterpReturn INTERP_MIN_ERROR = INTERP_ENDFILE;

#endif				/* INTERP_RETURN_H */
bues.ch cgit interface