lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 38f585d271dd666d14d589909be22aa671a80eaa
parent 6887f917999695aac6131091b78d99fb2718503d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 14 Sep 2005 14:44:26 -0300

separated macros for thread creation and state creation

Diffstat:
Mlapi.c | 4++--
Mluaconf.h | 3++-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/lapi.c b/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; } diff --git a/luaconf.h b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.65 2005/09/09 18:24:42 roberto Exp roberto $ +** $Id: luaconf.h,v 1.66 2005/09/14 17:23:03 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -675,6 +675,7 @@ union luai_Cast { double l_d; long l_l; }; ** extra when a thread is created/deleted/resumed/yielded. */ #define luai_userstateopen(L) ((void)0) +#define luai_userstatethread(L,L1) ((void)0) #define luai_userstatefree(L) ((void)0) #define luai_userstateresume(L,n) ((void)0) #define luai_userstateyield(L,n) ((void)0)