Debian Codegraph @

editor/ScriptCompilerAPI.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/editor/ScriptCompilerAPI.h $
21 * $Revision: 1.1.1.1 $
22 * $Date: 2003-08-26 03:57:38 $
23 * $Author: kevinb $
24 *
25 * Header file for Script Compiler API functions
26 *
27 * $Log: not supported by cvs2svn $
28 *
29 * 3 12/13/98 7:50p Jeff
30 * automatically add new DLLs that aren't in the manage
31 * system...implemented create new script function, even though it's still
32 * in infancy.
33 *
34 * 2 12/13/98 3:09a Jeff
35 * Initial creation, added ScriptCompile() function
36 *
37 * $NoKeywords: $
38 */
39
40 #ifndef __SCRIPTCOMPILERAPI_H_
41 #define __SCRIPTCOMPILERAPI_H_
42
43 #include "pstypes.h"
44
45 #define ST_LEVEL 0
46 #define ST_GAME 1
47 struct tCompilerInfo {
48 char source_filename[_MAX_PATH];
49 uint8_t script_type;
50 void (*callback)(char *str);
51 };
52
53 #define CERR_NOERR 0
54 #define CERR_NOCOMPILERDEFINED 1
55 #define CERR_COMPILERMISSING 2
56 #define CERR_SOURCENOEXIST 3
57
58 int ScriptCompile(tCompilerInfo *ci);
59 bool ScriptCreateEmptyScript(char *filename, uint8_t script_type);
60 #endif