new API function 'lua_mainthread'

This commit is contained in:
Roberto Ierusalimschy
2009-06-15 16:51:31 -03:00
parent 49b88b1c39
commit a21c89ddc8
3 changed files with 12 additions and 3 deletions

4
lua.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.236 2009/04/17 14:28:06 roberto Exp roberto $
** $Id: lua.h,v 1.237 2009/05/21 20:06:11 roberto Exp roberto $
** Lua - An Extensible Extension Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
@@ -113,6 +113,8 @@ LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
LUA_API void (lua_close) (lua_State *L);
LUA_API lua_State *(lua_newthread) (lua_State *L);
LUA_API lua_State *(lua_mainthread) (lua_State *L);
LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);