comparison src/luan/LuanState.java @ 111:2428ecfed375

change LuanFunction.call() from returning Object[] to returning Object, to reduce garbage collection git-svn-id: https://luan-java.googlecode.com/svn/trunk@112 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 23 May 2014 20:40:05 +0000
parents 3c404a296995
children 8c706d6eb5dc
comparison
equal deleted inserted replaced
110:7afa6df829f3 111:2428ecfed375
119 } catch(LuanException e) { 119 } catch(LuanException e) {
120 throw new RuntimeException(e); 120 throw new RuntimeException(e);
121 } 121 }
122 } 122 }
123 123
124 public final Object[] eval(String cmd,String sourceName,boolean interactive) throws LuanException { 124 public final Object eval(String cmd,String sourceName,boolean interactive) throws LuanException {
125 LuanFunction fn = BasicLib.load(this,cmd,sourceName,interactive); 125 LuanFunction fn = BasicLib.load(this,cmd,sourceName,interactive);
126 return JAVA.call(fn,null); 126 return JAVA.call(fn,null);
127 } 127 }
128 128
129 129