Mercurial Hosting > luan
comparison core/src/luan/modules/JavaLuan.java @ 574:6cc2f047019b
remove LuanState.call()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 13 Jul 2015 12:31:53 -0600 |
parents | f1601a4ce1aa |
children | 7c3ad6db8ac3 |
comparison
equal
deleted
inserted
replaced
573:894f991baac5 | 574:6cc2f047019b |
---|---|
333 String name = method.getName(); | 333 String name = method.getName(); |
334 Object fnObj = t.get(luan.JAVA,name); | 334 Object fnObj = t.get(luan.JAVA,name); |
335 if( fnObj == null ) | 335 if( fnObj == null ) |
336 throw new NullPointerException("luan_proxy couldn't find method '"+name+"'"); | 336 throw new NullPointerException("luan_proxy couldn't find method '"+name+"'"); |
337 LuanFunction fn = luan.checkFunction(fnObj); | 337 LuanFunction fn = luan.checkFunction(fnObj); |
338 return Luan.first(luan.call(fn,name,args)); | 338 return Luan.first(fn.call(luan,args)); |
339 } | 339 } |
340 } | 340 } |
341 ); | 341 ); |
342 } | 342 } |
343 } | 343 } |