Mercurial Hosting > luan
comparison src/luan/modules/Rpc.luan @ 1164:1f9d34a6f308
remove assertions
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 07 Feb 2018 17:36:38 -0700 |
parents | ba4daf107e07 |
children | 7f4a12fb7716 |
comparison
equal
deleted
inserted
replaced
1163:fef8f0742da9 | 1164:1f9d34a6f308 |
---|---|
12 local Luan = require "luan:Luan.luan" | 12 local Luan = require "luan:Luan.luan" |
13 local error = Luan.error | 13 local error = Luan.error |
14 local set_metatable = Luan.set_metatable or error() | 14 local set_metatable = Luan.set_metatable or error() |
15 local try = Luan.try or error() | 15 local try = Luan.try or error() |
16 local ipairs = Luan.ipairs or error() | 16 local ipairs = Luan.ipairs or error() |
17 local assert_table = Luan.assert_table or error() | |
18 local type = Luan.type or error() | 17 local type = Luan.type or error() |
19 local Io = require "luan:Io.luan" | 18 local Io = require "luan:Io.luan" |
20 local Thread = require "luan:Thread.luan" | 19 local Thread = require "luan:Thread.luan" |
21 local Table = require "luan:Table.luan" | 20 local Table = require "luan:Table.luan" |
22 local unpack = Table.unpack or error() | 21 local unpack = Table.unpack or error() |
35 end | 34 end |
36 return unpack(list) | 35 return unpack(list) |
37 end | 36 end |
38 | 37 |
39 local function luan_args(list,binary_in) | 38 local function luan_args(list,binary_in) |
40 list = assert_table(list) | 39 list = JavaLuan.table(list) |
41 for i,v in ipairs(list) do | 40 for i,v in ipairs(list) do |
42 list[i] = JavaLuan.toLuan(v) | 41 list[i] = JavaLuan.toLuan(v) |
43 end | 42 end |
44 if binary_in ~= nil then | 43 if binary_in ~= nil then |
45 local i_in = list[#list] | 44 local i_in = list[#list] |