summary refs log tree commit diff
path: root/src/constants.rs
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-08-30 23:35:45 +1200
committerSophie Forrest <git@sophieforrest.com>2024-08-30 23:35:45 +1200
commitf752160c6ebcee747a61e6febc4789d0b04ccd12 (patch)
tree76e123279abbd1797ba281f35cbcba61136ef7bd /src/constants.rs
parent98d7946709032aae5e1d0d35cff78efc55550900 (diff)
feat: implement generic engine for executor
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 6651b22..6ca1bc5 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -1,4 +1,9 @@
 //! Constants and types used throughout the Brainfuck interpreter.
 
 /// The inner type used by a Brainfuck tape.
+#[cfg(feature = "u8-engine")]
 pub type TapeInner = u8;
+
+/// The inner type used by a Brainfuck tape.
+#[cfg(feature = "u16-engine")]
+pub type TapeInner = u16;