comparison src/luan/LuanState.java @ 149:f99fd64291b3

change load() to take env instead of using global git-svn-id: https://luan-java.googlecode.com/svn/trunk@150 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 16 Jun 2014 05:47:54 +0000
parents fcb81fa2df0d
children f35c50027985
comparison
equal deleted inserted replaced
148:dfd0f33b584e 149:f99fd64291b3
150 } 150 }
151 } 151 }
152 152
153 public final Object eval(String cmd) { 153 public final Object eval(String cmd) {
154 try { 154 try {
155 LuanFunction fn = BasicLib.load(this,cmd,"eval",true,true); 155 LuanFunction fn = BasicLib.load(this,cmd,"eval",null,true);
156 return call(fn); 156 return call(fn);
157 } catch(LuanException e) { 157 } catch(LuanException e) {
158 throw new RuntimeException(e); 158 throw new RuntimeException(e);
159 } 159 }
160 } 160 }