Call native function.
(self, op: Call)
| 584 | return "" |
| 585 | |
| 586 | def visit_call(self, op: Call) -> None: |
| 587 | """Call native function.""" |
| 588 | dest = self.get_dest_assign(op) |
| 589 | args = ", ".join(self.reg(arg) for arg in op.args) |
| 590 | lib = self.emitter.get_group_prefix(op.fn) |
| 591 | cname = op.fn.cname(self.names) |
| 592 | self.emit_line(f"{dest}{lib}{NATIVE_PREFIX}{cname}({args});") |
| 593 | |
| 594 | def visit_method_call(self, op: MethodCall) -> None: |
| 595 | """Call native method.""" |
nothing calls this directly
no test coverage detected