Mercurial Hosting > luan
comparison src/luan/modules/JavaLuan.java @ 1267:9fa8b8389578
add LuanTable.luan;
support metatable __gc();
add luan.sql;
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 12 Nov 2018 02:10:41 -0700 |
parents | e54ae41e9501 |
children | f41919741100 |
comparison
equal
deleted
inserted
replaced
1266:05934fbf635a | 1267:9fa8b8389578 |
---|---|
319 throws Throwable | 319 throws Throwable |
320 { | 320 { |
321 if( args==null ) | 321 if( args==null ) |
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(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 } |