Loads the currently executing program counter, if the interpreter is running.
(&self)
| 53 | /// Loads the currently executing program counter, if the interpreter is |
| 54 | /// running. |
| 55 | pub fn get(&self) -> Option<usize> { |
| 56 | match self.0.current_pc.load(Relaxed) { |
| 57 | 0 => None, |
| 58 | n => Some(n), |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /// Returns whether the interpreter has been destroyed and will no longer |
| 63 | /// execute any code. |