(self, src: str, dest: str, typ: RType, check: str, optional: bool)
| 980 | self.emit_label(out_label) |
| 981 | |
| 982 | def emit_arg_check(self, src: str, dest: str, typ: RType, check: str, optional: bool) -> None: |
| 983 | if optional: |
| 984 | self.emit_line(f"if ({src} == NULL) {{") |
| 985 | self.emit_line(f"{dest} = {self.c_error_value(typ)};") |
| 986 | if check != "": |
| 987 | self.emit_line("{}if {}".format("} else " if optional else "", check)) |
| 988 | elif optional: |
| 989 | self.emit_line("else {") |
| 990 | |
| 991 | def emit_unbox( |
| 992 | self, |
no test coverage detected