diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-16 13:51:19 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-16 13:51:19 -0200 |
| commit | 95020afb6385f3c1293118c4950e9fb6299cef5a (patch) | |
| tree | 4a37211df58fc48ac6f75a00d60c84ee94f0ed45 | |
| parent | c5050b1c4124967f695a22021c5fedfec381774c (diff) | |
| download | lua-95020afb6385f3c1293118c4950e9fb6299cef5a.tar.gz lua-95020afb6385f3c1293118c4950e9fb6299cef5a.tar.bz2 lua-95020afb6385f3c1293118c4950e9fb6299cef5a.zip | |
'module' returns the new module (to be used with lexical environments)
| -rw-r--r-- | loadlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
