forked from QW-Group/ezquake-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
embed_tcl.h
49 lines (41 loc) · 1.48 KB
/
embed_tcl.h
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
48
49
/*
* QuakeWorld embedded Tcl interpreter
*
* Copyright (C) 2005 Se7en
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* $Id: embed_tcl.h,v 1.4 2007-10-01 18:31:06 disconn3ct Exp $
*/
#ifndef __EMBED_TCL_H__
#define __EMBED_TCL_H__
#if defined (_WIN32)
# define TCL_LIB_NAME "tcl.dll"
#elif defined (__APPLE__)
# define TCL_LIB_NAME "libtcl.dylib"
#else
# define TCL_LIB_NAME "libtcl.so"
#endif
extern int in_tcl;
void TCL_InterpInit (void);
void TCL_InterpInitCommands (void);
void TCL_Shutdown (void);
qbool TCL_InterpLoaded (void);
void TCL_RegisterVariable (cvar_t *variable);
void TCL_UnregisterVariable (const char *name);
void TCL_RegisterMacro (macro_command_t *macro);
void TCL_ExecuteAlias (cmd_alias_t *alias);
int TCL_MessageHook (const char *msg, unsigned trigger_type);
#endif /* !__EMBED_TCL_H__ */