Mercurial Hosting > luan
comparison src/luan/modules/http/LuanHandler.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 | 3f4644246e39 |
children | 503bde9a7c80 |
comparison
equal
deleted
inserted
replaced
1266:05934fbf635a | 1267:9fa8b8389578 |
---|---|
135 LuanFunction fn; | 135 LuanFunction fn; |
136 LuanState luan = currentLuan; | 136 LuanState luan = currentLuan; |
137 synchronized(luan) { | 137 synchronized(luan) { |
138 PackageLuan.enableLoad(luan,"luan:Rpc.luan"); | 138 PackageLuan.enableLoad(luan,"luan:Rpc.luan"); |
139 LuanTable rpc = (LuanTable)PackageLuan.require(luan,"luan:Rpc.luan"); | 139 LuanTable rpc = (LuanTable)PackageLuan.require(luan,"luan:Rpc.luan"); |
140 LuanTable fns = (LuanTable)rpc.get(luan,"functions"); | 140 LuanTable fns = (LuanTable)rpc.get("functions"); |
141 fn = (LuanFunction)fns.get(luan,fnName); | 141 fn = (LuanFunction)fns.get(fnName); |
142 if( fn == null ) | 142 if( fn == null ) |
143 throw new LuanException( "function not found: " + fnName ); | 143 throw new LuanException( "function not found: " + fnName ); |
144 LuanCloner cloner = new LuanCloner(LuanCloner.Type.INCREMENTAL); | 144 LuanCloner cloner = new LuanCloner(LuanCloner.Type.INCREMENTAL); |
145 luan = (LuanState)cloner.clone(luan); | 145 luan = (LuanState)cloner.clone(luan); |
146 fn = (LuanFunction)cloner.get(fn); | 146 fn = (LuanFunction)cloner.get(fn); |