diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-09-17 15:04:21 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-09-17 15:04:21 -0300 |
commit | 67cae2854cd2f90ff0cd91d641ab0b76417a1302 (patch) | |
tree | 74e1c888e6cd0b80e98a2a7adc26fd1bbab97844 /lua.h | |
parent | 0e45ffb8e41fa8f6b156bdaff0685e1ddfdfbd2a (diff) | |
download | lua-67cae2854cd2f90ff0cd91d641ab0b76417a1302.tar.gz lua-67cae2854cd2f90ff0cd91d641ab0b76417a1302.tar.bz2 lua-67cae2854cd2f90ff0cd91d641ab0b76417a1302.zip |
'lua_mainthread' replaced by new preregistered value LUA_RIDX_MAINTHREAD
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.241 2009/07/15 17:26:14 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.242 2009/09/14 14:30:39 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -89,6 +89,12 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); | |||
89 | #define LUA_MINSTACK 20 | 89 | #define LUA_MINSTACK 20 |
90 | 90 | ||
91 | 91 | ||
92 | /* predefined values in the registry */ | ||
93 | #define LUA_RIDX_MAINTHREAD 1 | ||
94 | #define LUA_RIDX_LAST LUA_RIDX_MAINTHREAD | ||
95 | |||
96 | |||
97 | |||
92 | /* | 98 | /* |
93 | ** generic extra include file | 99 | ** generic extra include file |
94 | */ | 100 | */ |
@@ -113,8 +119,6 @@ LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); | |||
113 | LUA_API void (lua_close) (lua_State *L); | 119 | LUA_API void (lua_close) (lua_State *L); |
114 | LUA_API lua_State *(lua_newthread) (lua_State *L); | 120 | LUA_API lua_State *(lua_newthread) (lua_State *L); |
115 | 121 | ||
116 | LUA_API lua_State *(lua_mainthread) (lua_State *L); | ||
117 | |||
118 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); | 122 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); |
119 | 123 | ||
120 | 124 | ||