MCPcopy Index your code
hub / github.com/endbasic/endbasic / park_at_eof

Method park_at_eof

core/src/vm/mod.rs:299–302  ·  view source on GitHub ↗

Parks execution at the current EOF instruction so later appended code can resume.

(&mut self, image: &Image)

Source from the content-addressed store, hash-verified

297
298 /// Parks execution at the current EOF instruction so later appended code can resume.
299 fn park_at_eof(&mut self, image: &Image) {
300 debug_assert!(!image.code.is_empty());
301 self.context.set_pc(image.code.len() - 1);
302 }
303
304 /// Constructs a `Scope` for an upcall with arguments starting at `reg`.
305 ///

Callers 3

invokeMethod · 0.80
execMethod · 0.80
interruptMethod · 0.80

Calls 2

set_pcMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected