Mercurial Hosting > luan
comparison src/luan/LuanClosure.java @ 1333:25746915a241
merge Luan and LuanState
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Feb 2019 22:33:40 -0700 |
parents | f41919741100 |
children | e0cf0d108a77 |
comparison
equal
deleted
inserted
replaced
1332:11b7e11f9ed5 | 1333:25746915a241 |
---|---|
42 upValues = (Pointer[])cloner.clone(upValues); | 42 upValues = (Pointer[])cloner.clone(upValues); |
43 cloner = null; | 43 cloner = null; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 @Override public final Object call(LuanState luan,Object[] args) throws LuanException { | 47 @Override public final Object call(Luan luan,Object[] args) throws LuanException { |
48 if( luan.isLocked ) | 48 if( luan.isLocked ) |
49 throw new RuntimeException("luan is locked"); | 49 throw new RuntimeException("luan is locked"); |
50 check(); | 50 check(); |
51 luan.push(this); | 51 luan.push(this); |
52 try { | 52 try { |
56 } finally { | 56 } finally { |
57 luan.pop(); | 57 luan.pop(); |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 public abstract Object doCall(LuanState luan,Object[] args) throws LuanException; | 61 public abstract Object doCall(Luan luan,Object[] args) throws LuanException; |
62 } | 62 } |