Mercurial Hosting > luan
comparison core/src/luan/modules/JavaLuan.java @ 647:8e8c30b72e9b
move methods from LuanState to Luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 20:39:14 -0600 |
parents | cdc70de628b5 |
children | d3e5414bdf4c |
comparison
equal
deleted
inserted
replaced
646:cdc70de628b5 | 647:8e8c30b72e9b |
---|---|
322 args = new Object[0]; | 322 args = new Object[0]; |
323 String name = method.getName(); | 323 String name = method.getName(); |
324 Object fnObj = t.get(luan,name); | 324 Object fnObj = t.get(luan,name); |
325 if( fnObj == null ) | 325 if( fnObj == null ) |
326 throw new NullPointerException("luan_proxy couldn't find method '"+name+"'"); | 326 throw new NullPointerException("luan_proxy couldn't find method '"+name+"'"); |
327 LuanFunction fn = luan.checkFunction(fnObj); | 327 LuanFunction fn = Luan.checkFunction(fnObj); |
328 return Luan.first(fn.call(luan,args)); | 328 return Luan.first(fn.call(luan,args)); |
329 } | 329 } |
330 } | 330 } |
331 ); | 331 ); |
332 } | 332 } |