Gets the string value of the argument at `arg`.
(&self, arg: u8)
| 995 | |
| 996 | /// Gets the string value of the argument at `arg`. |
| 997 | pub fn get_string(&self, arg: u8) -> &str { |
| 998 | let index = self.regs[self.fp + self.arg_offset + (arg as usize)]; |
| 999 | let ptr = DatumPtr::from(index); |
| 1000 | ptr.resolve_string(self.constants, self.heap) |
| 1001 | } |
| 1002 | |
| 1003 | /// Returns the last error stored in the VM, if any. |
| 1004 | pub fn last_error(&self) -> Option<(LineCol, &str)> { |