Get function from the module. @param name The name of the function. @param queryImports Whether also query modules imported by this module. @return The result function.
(String name, boolean queryImports)
| 75 | * @return The result function. |
| 76 | */ |
| 77 | public Function getFunction(String name, boolean queryImports) { |
| 78 | TVMValue ret = getApi("ffi.ModuleGetFunction") |
| 79 | .pushArg(this) |
| 80 | .pushArg(name) |
| 81 | .pushArg(queryImports ? 1 : 0) |
| 82 | .invoke(); |
| 83 | return ret.asFunction(); |
| 84 | } |
| 85 | |
| 86 | public Function getFunction(String name) { |
| 87 | return getFunction(name, false); |
no test coverage detected