blob: 00edb4c6b3e66a7217dfdc8db06f8697675cc1f3 (
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
|
/*
** $Id: $
** Global variables
** See Copyright Notice in lua.h
*/
#ifndef lglobal_h
#define lglobal_h
#include "lobject.h"
typedef struct {
TObject object;
TaggedString *varname;
} Symbol;
extern Symbol *luaG_global; /* global variables */
extern int luaG_nglobal; /* number of global variable (for luac) */
Word luaG_findsymbolbyname (char *name);
Word luaG_findsymbol (TaggedString *t);
int luaG_globaldefined (char *name);
int luaG_nextvar (Word next);
char *luaG_travsymbol (int (*fn)(TObject *));
#define s_object(i) (luaG_global[i].object)
#define s_ttype(i) (ttype(&s_object(i)))
#endif
|