aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-10 20:09:51 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-10 20:09:51 -0200
commit9cd36059ad6f3f6750b8cff54c305ae347c6caca (patch)
tree6b71bb5dab3c7f1e8fec12bc03830b58cdc59fc0 /lbaselib.c
parent592a309177edc52847b1196969ad6d49ba21f4fb (diff)
downloadlua-9cd36059ad6f3f6750b8cff54c305ae347c6caca.tar.gz
lua-9cd36059ad6f3f6750b8cff54c305ae347c6caca.tar.bz2
lua-9cd36059ad6f3f6750b8cff54c305ae347c6caca.zip
new API functions lua_getstr/lua_setstr
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index adb9af0c..bb66ab32 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -20,9 +20,8 @@
20 20
21 21
22static void aux_setn (lua_State *L, int t, int n) { 22static void aux_setn (lua_State *L, int t, int n) {
23 lua_pushliteral(L, "n");
24 lua_pushnumber(L, n); 23 lua_pushnumber(L, n);
25 lua_settable(L, t); 24 lua_setstr(L, t, "n");
26} 25}
27 26
28 27