Mercurial Hosting > luan
diff src/luan/interp/UpValue.java @ 48:64ecb7a3aad7
rename Lua to Luan
git-svn-id: https://luan-java.googlecode.com/svn/trunk@49 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 28 Dec 2012 03:29:12 +0000 |
parents | 0cdc1da466ee |
children | 8ede219cd111 |
line wrap: on
line diff
--- a/src/luan/interp/UpValue.java Thu Dec 27 04:36:44 2012 +0000 +++ b/src/luan/interp/UpValue.java Fri Dec 28 03:29:12 2012 +0000 @@ -36,7 +36,7 @@ } static interface Getter { - public UpValue get(LuaStateImpl lua); + public UpValue get(LuanStateImpl lua); } static final class StackGetter implements Getter { @@ -46,7 +46,7 @@ this.index = index; } - public UpValue get(LuaStateImpl lua) { + public UpValue get(LuanStateImpl lua) { return lua.getUpValue(index); } } @@ -58,13 +58,13 @@ this.index = index; } - public UpValue get(LuaStateImpl lua) { + public UpValue get(LuanStateImpl lua) { return lua.closure().upValues[index]; } } static final Getter globalGetter = new Getter() { - public UpValue get(LuaStateImpl lua) { + public UpValue get(LuanStateImpl lua) { return new UpValue(lua.global()); } };