diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-25 17:05:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-25 17:05:28 -0300 |
commit | 96e15b8501e5d8fc40c475cbac573f910ab5853b (patch) | |
tree | 2c8efededa6849704f0db3075d0cbe0efaa40b2d /lua.h | |
parent | 0fd91b1b087b478fffa36f96bc0f608d86627a4b (diff) | |
download | lua-96e15b8501e5d8fc40c475cbac573f910ab5853b.tar.gz lua-96e15b8501e5d8fc40c475cbac573f910ab5853b.tar.bz2 lua-96e15b8501e5d8fc40c475cbac573f910ab5853b.zip |
threads now are real Lua objects, subject to garbage collection
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.158 2002/10/22 17:18:28 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.159 2002/10/22 17:21:25 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
5 | ** http://www.lua.org mailto:info@lua.org | 5 | ** http://www.lua.org mailto:info@lua.org |
@@ -70,6 +70,7 @@ typedef const char * (*lua_Chunkreader) (lua_State *L, void *ud, size_t *sz); | |||
70 | #define LUA_TTABLE 5 | 70 | #define LUA_TTABLE 5 |
71 | #define LUA_TFUNCTION 6 | 71 | #define LUA_TFUNCTION 6 |
72 | #define LUA_TUSERDATA 7 | 72 | #define LUA_TUSERDATA 7 |
73 | #define LUA_TTHREAD 8 | ||
73 | 74 | ||
74 | 75 | ||
75 | /* minimum Lua stack available to a C function */ | 76 | /* minimum Lua stack available to a C function */ |
@@ -104,7 +105,6 @@ typedef LUA_NUMBER lua_Number; | |||
104 | LUA_API lua_State *lua_open (void); | 105 | LUA_API lua_State *lua_open (void); |
105 | LUA_API void lua_close (lua_State *L); | 106 | LUA_API void lua_close (lua_State *L); |
106 | LUA_API lua_State *lua_newthread (lua_State *L); | 107 | LUA_API lua_State *lua_newthread (lua_State *L); |
107 | LUA_API void lua_closethread (lua_State *L, lua_State *t); | ||
108 | 108 | ||
109 | LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf); | 109 | LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf); |
110 | 110 | ||
@@ -142,6 +142,7 @@ LUA_API const char *lua_tostring (lua_State *L, int idx); | |||
142 | LUA_API size_t lua_strlen (lua_State *L, int idx); | 142 | LUA_API size_t lua_strlen (lua_State *L, int idx); |
143 | LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx); | 143 | LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx); |
144 | LUA_API void *lua_touserdata (lua_State *L, int idx); | 144 | LUA_API void *lua_touserdata (lua_State *L, int idx); |
145 | LUA_API lua_State *lua_tothread (lua_State *L, int idx); | ||
145 | LUA_API const void *lua_topointer (lua_State *L, int idx); | 146 | LUA_API const void *lua_topointer (lua_State *L, int idx); |
146 | 147 | ||
147 | 148 | ||