aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-25 17:05:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-25 17:05:28 -0300
commit96e15b8501e5d8fc40c475cbac573f910ab5853b (patch)
tree2c8efededa6849704f0db3075d0cbe0efaa40b2d /lua.h
parent0fd91b1b087b478fffa36f96bc0f608d86627a4b (diff)
downloadlua-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index bc899b0c..f95ef4fd 100644
--- a/lua.h
+++ b/lua.h
@@ -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;
104LUA_API lua_State *lua_open (void); 105LUA_API lua_State *lua_open (void);
105LUA_API void lua_close (lua_State *L); 106LUA_API void lua_close (lua_State *L);
106LUA_API lua_State *lua_newthread (lua_State *L); 107LUA_API lua_State *lua_newthread (lua_State *L);
107LUA_API void lua_closethread (lua_State *L, lua_State *t);
108 108
109LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf); 109LUA_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);
142LUA_API size_t lua_strlen (lua_State *L, int idx); 142LUA_API size_t lua_strlen (lua_State *L, int idx);
143LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx); 143LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx);
144LUA_API void *lua_touserdata (lua_State *L, int idx); 144LUA_API void *lua_touserdata (lua_State *L, int idx);
145LUA_API lua_State *lua_tothread (lua_State *L, int idx);
145LUA_API const void *lua_topointer (lua_State *L, int idx); 146LUA_API const void *lua_topointer (lua_State *L, int idx);
146 147
147 148