Debian Codegraph @

terps/tads/tads3/tctargty.h

raw symbols SCIP
1 /* $Header: d:/cvsroot/tads/tads3/TCTARGTY.H,v 1.1 1999/07/11 00:46:58 MJRoberts Exp $ */
2
3 /*
4 * Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
5 *
6 * Please see the accompanying license file, LICENSE.TXT, for information
7 * on using and copying this software.
8 */
9 /*
10 Name
11 tctarg.h - TADS 3 Compiler Target Selector - target types
12 Function
13
14 Notes
15
16 Modified
17 04/30/99 MJRoberts - Creation
18 */
19
20 #ifndef TCTARGTY_H
21 #define TCTARGTY_H
22
23 /* ------------------------------------------------------------------------ */
24 /*
25 * Target Selection - type definitions
26 *
27 * This is a target selector for the target types header. This follows
28 * the same mechanism that tctarg.h uses - refer to that file for
29 * details.
30 */
31
32 /*
33 * make sure TC_TARGET_DEFINED__ isn't defined, so we can use it to
34 * sense whether we defined a code generator or not
35 */
36 #undef TCTARGTY_TARGET_DEFINED__
37
38 /* ------------------------------------------------------------------------ */
39 /*
40 * T3 Virtual Machine Code Generator
41 */
42 #ifdef TC_TARGET_T3
43 #include "tct3ty.h"
44 #define TCTARGTY_TARGET_DEFINED__
45 #endif
46
47 /*
48 * Javascript Code Generator
49 */
50 #ifdef TC_TARGET_JS
51 #include "tcjsty.h"
52 #define TCTARGTY_TARGET_DEFINED__
53 #endif
54
55
56 /* ------------------------------------------------------------------------ */
57 /*
58 * ensure that a code generator was defined - if not, the compilation
59 * cannot proceed
60 */
61 #ifndef TCTARGTY_TARGET_DEFINED__
62 #error No code generator target is defined. A code generator must be defined in your makefile. See tctarg.h for details.
63 #endif
64
65
66 #endif /* TCTARGTY_H */
67