(TVMValue... args)
| 27 | public void test_reg_sum_number() { |
| 28 | Function.register("sum_number", new Function.Callback() { |
| 29 | @Override |
| 30 | public Object invoke(TVMValue... args) { |
| 31 | long res = 0L; |
| 32 | for (TVMValue arg : args) { |
| 33 | res += arg.asLong(); |
| 34 | } |
| 35 | return res; |
| 36 | } |
| 37 | }); |
| 38 | Function func = Function.getFunction("sum_number"); |
| 39 | TVMValue res = func.pushArg(10).pushArg(20).invoke(); |
nothing calls this directly
no test coverage detected