forked from n3tael/labast
5 lines
146 B
Rust
5 lines
146 B
Rust
use crate::errors::RunError;
|
|
|
|
pub fn dup(memory: &mut Vec<u16>) {
|
|
memory.push(*memory.last().expect(&format!("{}", RunError::MemoryEmpty)));
|
|
} |