浏览代码

lua_setstate makes no sense with explicit multiple states

Roberto Ierusalimschy 25 年之前
父节点
当前提交
4c03196697
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      lua.h

+ 1 - 4
lua.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lua.h,v 1.43 1999/12/06 11:41:28 roberto Exp roberto $
+** $Id: lua.h,v 1.44 1999/12/30 18:29:46 roberto Exp roberto $
 ** Lua - An Extensible Extension Language
 ** Lua - An Extensible Extension Language
 ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
 ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
 ** e-mail: [email protected]
 ** e-mail: [email protected]
@@ -114,8 +114,6 @@ long	       lua_collectgarbage (lua_State *L, long limit);
 
 
 lua_Object     lua_seterrormethod (lua_State *L);  /* In: new method */
 lua_Object     lua_seterrormethod (lua_State *L);  /* In: new method */
 
 
-lua_State     *lua_setstate (lua_State *st);
-
 
 
 /* 
 /* 
 ** ===============================================================
 ** ===============================================================
@@ -159,7 +157,6 @@ extern lua_State *lua_state;
 #define lua_open()	((void)(lua_state?0:(lua_state=lua_newstate(NULL))))
 #define lua_open()	((void)(lua_state?0:(lua_state=lua_newstate(NULL))))
 
 
 #define lua_close()		(lua_close)(lua_state)
 #define lua_close()		(lua_close)(lua_state)
-#define lua_setstate(st)	(lua_setstate)(lua_state, st)
 #define lua_settagmethod(tag,event)	(lua_settagmethod)(lua_state, tag,event)
 #define lua_settagmethod(tag,event)	(lua_settagmethod)(lua_state, tag,event)
 #define lua_gettagmethod(tag,event)	(lua_gettagmethod)(lua_state, tag,event)
 #define lua_gettagmethod(tag,event)	(lua_gettagmethod)(lua_state, tag,event)
 #define lua_newtag()		(lua_newtag)(lua_state)
 #define lua_newtag()		(lua_newtag)(lua_state)