aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-10 14:58:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-10 14:58:11 -0200
commit4ff55457095728b95cc5dcdbab0bca7255bd5387 (patch)
tree661c6a3b6143aa66f2171811a1c87493abb17fc8 /lua.h
parent595e449537eb6ff17fa6c58742920a1a609fc5c5 (diff)
downloadlua-4ff55457095728b95cc5dcdbab0bca7255bd5387.tar.gz
lua-4ff55457095728b95cc5dcdbab0bca7255bd5387.tar.bz2
lua-4ff55457095728b95cc5dcdbab0bca7255bd5387.zip
new macro pushliteral
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index 57fb20a2..9279aa2e 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.80 2000/12/04 18:33:40 roberto Exp roberto $ 2** $Id: lua.h,v 1.81 2000/12/22 16:58:41 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
5** e-mail: lua@tecgraf.puc-rio.br 5** e-mail: lua@tecgraf.puc-rio.br
@@ -22,7 +22,7 @@
22#endif 22#endif
23 23
24 24
25#define LUA_VERSION "Lua 4.1(work)" 25#define LUA_VERSION "Lua 4.1 (work)"
26#define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio" 26#define LUA_COPYRIGHT "Copyright (C) 1994-2000 TeCGraf, PUC-Rio"
27#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 27#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
28 28
@@ -210,6 +210,8 @@ LUA_API void *lua_newuserdata (lua_State *L, size_t size);
210 210
211#define lua_getregistry(L) lua_getref(L, LUA_REFREGISTRY) 211#define lua_getregistry(L) lua_getref(L, LUA_REFREGISTRY)
212 212
213#define lua_pushliteral(L, s) lua_pushlstring(L, "" s, (sizeof(s))-1)
214
213#endif 215#endif
214 216
215 217