summaryrefslogtreecommitdiff
path: root/ldblib.c
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 /ldblib.c
parent595e449537eb6ff17fa6c58742920a1a609fc5c5 (diff)
downloadlua-4ff55457095728b95cc5dcdbab0bca7255bd5387.tar.gz
lua-4ff55457095728b95cc5dcdbab0bca7255bd5387.tar.bz2
lua-4ff55457095728b95cc5dcdbab0bca7255bd5387.zip
new macro pushliteral
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index 4704017c..6898a3f9 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.30 2000/11/14 18:46:20 roberto Exp $ 2** $Id: ldblib.c,v 1.30 2000/11/23 13:47:39 roberto Exp roberto $
3** Interface from Lua to its debug API 3** Interface from Lua to its debug API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -71,7 +71,7 @@ static int getinfo (lua_State *L) {
71 settabss(L, "namewhat", ar.namewhat); 71 settabss(L, "namewhat", ar.namewhat);
72 break; 72 break;
73 case 'f': 73 case 'f':
74 lua_pushstring(L, "func"); 74 lua_pushliteral(L, "func");
75 lua_pushvalue(L, -3); 75 lua_pushvalue(L, -3);
76 lua_settable(L, -3); 76 lua_settable(L, -3);
77 break; 77 break;