Mercurial Hosting > luan
comparison src/luan/LuanState.java @ 140:f4ce03ff6b2f
add per_session for Http
git-svn-id: https://luan-java.googlecode.com/svn/trunk@141 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 13 Jun 2014 15:04:29 +0000 |
parents | 7e160d2f6d9c |
children | c2ee8a717b73 |
comparison
equal
deleted
inserted
replaced
139:3b384dc5ca91 | 140:f4ce03ff6b2f |
---|---|
158 } catch(LuanException e) { | 158 } catch(LuanException e) { |
159 throw new RuntimeException(e); | 159 throw new RuntimeException(e); |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 public final Object eval(String cmd) throws LuanException { | 163 public final Object eval(String cmd) { |
164 LuanFunction fn = BasicLib.load(this,cmd,"eval",true,true); | 164 try { |
165 return call(fn); | 165 LuanFunction fn = BasicLib.load(this,cmd,"eval",true,true); |
166 return call(fn); | |
167 } catch(LuanException e) { | |
168 throw new RuntimeException(e); | |
169 } | |
166 } | 170 } |
167 | |
168 | 171 |
169 public final LuanTable getMetatable(Object obj) { | 172 public final LuanTable getMetatable(Object obj) { |
170 if( obj instanceof LuanTable ) { | 173 if( obj instanceof LuanTable ) { |
171 LuanTable table = (LuanTable)obj; | 174 LuanTable table = (LuanTable)obj; |
172 return table.getMetatable(); | 175 return table.getMetatable(); |