aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 8d25ab89..e4f52cec 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.47 2001/01/25 16:45:36 roberto Exp roberto $ 2** $Id: lstate.h,v 1.48 2001/01/26 11:45:51 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -32,6 +32,12 @@ extern int islocked;
32#define LUA_UNLOCK 32#define LUA_UNLOCK
33#endif 33#endif
34 34
35/*
36** macro to allow the inclusion of user information in Lua state
37*/
38#ifndef LUA_USERSTATE
39#define LUA_USERSTATE
40#endif
35 41
36typedef TObject *StkId; /* index to stack elements */ 42typedef TObject *StkId; /* index to stack elements */
37 43
@@ -90,6 +96,7 @@ typedef struct global_State {
90** "per thread" state 96** "per thread" state
91*/ 97*/
92struct lua_State { 98struct lua_State {
99 LUA_USERSTATE
93 StkId top; /* first free slot in the stack */ 100 StkId top; /* first free slot in the stack */
94 StkId stack; /* stack base */ 101 StkId stack; /* stack base */
95 StkId stack_last; /* last free slot in the stack */ 102 StkId stack_last; /* last free slot in the stack */