diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-11 18:26:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-11 18:26:52 -0200 |
commit | d56d4cf776b2a874e35d7a92c506840f4a2051b6 (patch) | |
tree | 873e9d729b589749aa207916dd1c42843154ce63 /lstate.h | |
parent | b7ae43d457ca7b5a46ca768f482b334d70897a14 (diff) | |
download | lua-d56d4cf776b2a874e35d7a92c506840f4a2051b6.tar.gz lua-d56d4cf776b2a874e35d7a92c506840f4a2051b6.tar.bz2 lua-d56d4cf776b2a874e35d7a92c506840f4a2051b6.zip |
distinct functions to create/destroy states and threads
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -64,6 +64,9 @@ struct lua_longjmp; /* defined in ldo.c */ | |||
64 | 64 | ||
65 | #define RESERVED_STACK_PREFIX 3 | 65 | #define RESERVED_STACK_PREFIX 3 |
66 | 66 | ||
67 | /* space to handle stack overflow errors */ | ||
68 | #define EXTRA_STACK (2*LUA_MINSTACK) | ||
69 | |||
67 | 70 | ||
68 | 71 | ||
69 | typedef struct stringtable { | 72 | typedef struct stringtable { |
@@ -90,6 +93,7 @@ typedef struct CallInfo { | |||
90 | 93 | ||
91 | #define ci_func(ci) (clvalue((ci)->base - 1)) | 94 | #define ci_func(ci) (clvalue((ci)->base - 1)) |
92 | 95 | ||
96 | #define yield_results refi /* reuse this field */ | ||
93 | 97 | ||
94 | 98 | ||
95 | /* | 99 | /* |
@@ -138,5 +142,7 @@ struct lua_State { | |||
138 | #define G(L) (L->_G) | 142 | #define G(L) (L->_G) |
139 | 143 | ||
140 | 144 | ||
145 | void luaE_closethread (lua_State *OL, lua_State *L); | ||
146 | |||
141 | #endif | 147 | #endif |
142 | 148 | ||