ソースを参照

missing definition of "lua_storesubscript", for compatibility

Roberto Ierusalimschy 28 年 前
コミット
6251d889ca
1 ファイル変更5 行追加3 行削除
  1. 5 3
      lua.h

+ 5 - 3
lua.h

@@ -2,7 +2,7 @@
 ** LUA - An Extensible Extension Language
 ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
 ** e-mail: [email protected]
-** $Id: lua.h,v 4.1 1997/04/03 18:26:08 roberto Exp roberto $
+** $Id: lua.h,v 4.2 1997/04/04 22:24:51 roberto Exp roberto $
 */
 
 
@@ -99,8 +99,8 @@ lua_Object     lua_createtable		(void);
 
 lua_Object     lua_setfallback		(char *event, lua_CFunction fallback);
 
-#define lua_storeglobal(n)	lua_setglobal(n)
-#define lua_type(o)		(lua_tag(o))
+#define lua_storeglobal		lua_setglobal
+#define lua_type		lua_tag
 
 void	*lua_getuserdata	(lua_Object object);
 
@@ -118,4 +118,6 @@ void	*lua_getuserdata	(lua_Object object);
 #define lua_copystring(o) (strdup(lua_getstring(o)))
 
 #define lua_getsubscript  lua_gettable
+#define lua_storesubscript  lua_settable
+
 #endif