aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:09 -0300
commitafaa98a666acd5f596b50f56bb288815838c096e (patch)
tree598f2139de92947f1b29088bb40544e9c94bbb62 /lua.h
parent73be918285f7e2eb0acc02d73effa6a95a8ab08c (diff)
downloadlua-afaa98a666acd5f596b50f56bb288815838c096e.tar.gz
lua-afaa98a666acd5f596b50f56bb288815838c096e.tar.bz2
lua-afaa98a666acd5f596b50f56bb288815838c096e.zip
no more "lua_pushliteral".
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index cd34c1b4..da1867b0 100644
--- a/lua.h
+++ b/lua.h
@@ -2,7 +2,7 @@
2** LUA - Linguagem para Usuarios de Aplicacao 2** LUA - Linguagem para Usuarios de Aplicacao
3** Grupo de Tecnologia em Computacao Grafica 3** Grupo de Tecnologia em Computacao Grafica
4** TeCGraf - PUC-Rio 4** TeCGraf - PUC-Rio
5** $Id: lua.h,v 3.20 1995/10/31 16:41:53 roberto Exp roberto $ 5** $Id: lua.h,v 3.21 1995/11/13 15:36:52 roberto Exp roberto $
6*/ 6*/
7 7
8 8
@@ -60,7 +60,6 @@ void *lua_getuserdata (lua_Object object);
60void lua_pushnil (void); 60void lua_pushnil (void);
61void lua_pushnumber (float n); 61void lua_pushnumber (float n);
62void lua_pushstring (char *s); 62void lua_pushstring (char *s);
63void lua_pushliteral (char *s);
64void lua_pushcfunction (lua_CFunction fn); 63void lua_pushcfunction (lua_CFunction fn);
65void lua_pushusertag (void *u, int tag); 64void lua_pushusertag (void *u, int tag);
66void lua_pushobject (lua_Object object); 65void lua_pushobject (lua_Object object);
@@ -98,7 +97,9 @@ lua_Object lua_createtable (void);
98#define lua_isuserdata(_) (lua_type(_)>=LUA_T_USERDATA) 97#define lua_isuserdata(_) (lua_type(_)>=LUA_T_USERDATA)
99 98
100 99
101/* for lua 1.1 compatibility. Avoid using these macros */ 100/* for compatibility with old versions. Avoid using these macros */
101
102#define lua_pushliteral(o) lua_pushstring(o)
102 103
103#define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_getsubscript()) 104#define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_getsubscript())
104#define lua_getfield(o,f) (lua_pushobject(o), lua_pushliteral(f), lua_getsubscript()) 105#define lua_getfield(o,f) (lua_pushobject(o), lua_pushliteral(f), lua_getsubscript())