aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-16 13:51:19 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-16 13:51:19 -0200
commit95020afb6385f3c1293118c4950e9fb6299cef5a (patch)
tree4a37211df58fc48ac6f75a00d60c84ee94f0ed45 /loadlib.c
parentc5050b1c4124967f695a22021c5fedfec381774c (diff)
downloadlua-95020afb6385f3c1293118c4950e9fb6299cef5a.tar.gz
lua-95020afb6385f3c1293118c4950e9fb6299cef5a.tar.bz2
lua-95020afb6385f3c1293118c4950e9fb6299cef5a.zip
'module' returns the new module (to be used with lexical environments)
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loadlib.c b/loadlib.c
index 3e807c2c..65182591 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loadlib.c,v 1.65 2009/09/07 14:24:12 roberto Exp roberto $ 2** $Id: loadlib.c,v 1.66 2009/10/05 16:44:33 roberto Exp roberto $
3** Dynamic library loader for Lua 3** Dynamic library loader for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5** 5**
@@ -587,7 +587,7 @@ static int ll_module (lua_State *L) {
587 lua_pushvalue(L, -1); 587 lua_pushvalue(L, -1);
588 setfenv(L); 588 setfenv(L);
589 dooptions(L, loaded - 1); 589 dooptions(L, loaded - 1);
590 return 0; 590 return 1;
591} 591}
592 592
593 593