old signature for lua_open

This commit is contained in:
Roberto Ierusalimschy 2001-03-09 15:05:05 -03:00
parent c5a23cf01a
commit cb49b088b6
4 changed files with 11 additions and 9 deletions

6
lua.h
View file

@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.89 2001/02/23 17:17:25 roberto Exp roberto $
** $Id: lua.h,v 1.90 2001/02/23 17:28:12 roberto Exp roberto $
** Lua - An Extensible Extension Language
** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
** e-mail: lua@tecgraf.puc-rio.br
@ -93,7 +93,7 @@ typedef char l_char;
/*
** state manipulation
*/
LUA_API lua_State *lua_open (lua_State *L, int stacksize);
LUA_API lua_State *lua_newthread (lua_State *L, int stacksize);
LUA_API void lua_close (lua_State *L);
@ -210,6 +210,8 @@ LUA_API void *lua_newuserdata (lua_State *L, size_t size);
** ===============================================================
*/
#define lua_open(n) lua_newthread(NULL, (n))
#define lua_pop(L,n) lua_settop(L, -(n)-1)
#define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n))