Mercurial Hosting > luan
comparison src/luan/interp/SetLocalVar.java @ 17:09d41f7490a8
add local variables
git-svn-id: https://luan-java.googlecode.com/svn/trunk@18 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 30 Nov 2012 11:46:34 +0000 |
parents | |
children | 5cf15507d77e |
comparison
equal
deleted
inserted
replaced
16:2a30281ef47c | 17:09d41f7490a8 |
---|---|
1 package luan.interp; | |
2 | |
3 import luan.LuaState; | |
4 | |
5 | |
6 final class SetLocalVar implements Settable { | |
7 private final int index; | |
8 | |
9 SetLocalVar(int index) { | |
10 this.index = index; | |
11 } | |
12 | |
13 @Override public void set(LuaState lua,Object value) { | |
14 lua.stack()[index] = value; | |
15 } | |
16 } |