mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
separated macros for thread creation and state creation
This commit is contained in:
parent
6887f91799
commit
38f585d271
2 changed files with 4 additions and 3 deletions
4
lapi.c
4
lapi.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lapi.c,v 2.47 2005/08/24 16:15:49 roberto Exp roberto $
|
||||
** $Id: lapi.c,v 2.48 2005/09/01 17:42:22 roberto Exp roberto $
|
||||
** Lua API
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -141,7 +141,7 @@ LUA_API lua_State *lua_newthread (lua_State *L) {
|
|||
setthvalue(L, L->top, L1);
|
||||
api_incr_top(L);
|
||||
lua_unlock(L);
|
||||
luai_userstateopen(L1);
|
||||
luai_userstatethread(L, L1);
|
||||
return L1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue