Mercurial Hosting > luan
comparison core/src/luan/impl/GetLocalVar.java @ 584:0742ac78fa69
add Luan.load_theme
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 12 Aug 2015 05:21:21 -0600 |
parents | b48cfa14ba60 |
children | 859c0dedc8b6 |
comparison
equal
deleted
inserted
replaced
583:1368ca798ccc | 584:0742ac78fa69 |
---|---|
6 final class GetLocalVar extends CodeImpl implements Expr { | 6 final class GetLocalVar extends CodeImpl implements Expr { |
7 private final int index; | 7 private final int index; |
8 | 8 |
9 GetLocalVar(LuanElement se,int index) { | 9 GetLocalVar(LuanElement se,int index) { |
10 super(se); | 10 super(se); |
11 if( index < 0 ) throw new RuntimeException(); | |
11 this.index = index; | 12 this.index = index; |
12 } | 13 } |
13 | 14 |
14 @Override public Object eval(LuanStateImpl luan) { | 15 @Override public Object eval(LuanStateImpl luan) { |
15 return luan.stackGet(index); | 16 return luan.stackGet(index); |