Mercurial Hosting > luan
comparison core/src/luan/impl/SetLocalVar.java @ 594:e91e476186c7
theme indentation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Sep 2015 12:23:53 -0600 |
parents | 3dcb0f9bee82 |
children |
comparison
equal
deleted
inserted
replaced
593:92c9fa5e39e6 | 594:e91e476186c7 |
---|---|
3 | 3 |
4 final class SetLocalVar implements Settable { | 4 final class SetLocalVar implements Settable { |
5 private final int index; | 5 private final int index; |
6 | 6 |
7 SetLocalVar(int index) { | 7 SetLocalVar(int index) { |
8 if( index < 0 ) throw new RuntimeException(); | |
8 this.index = index; | 9 this.index = index; |
9 } | 10 } |
10 | 11 |
11 @Override public void set(LuanStateImpl luan,Object value) { | 12 @Override public void set(LuanStateImpl luan,Object value) { |
12 luan.stackSet( index, value ); | 13 luan.stackSet( index, value ); |