diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-08-30 23:35:45 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-08-30 23:35:45 +1200 |
| commit | f752160c6ebcee747a61e6febc4789d0b04ccd12 (patch) | |
| tree | 76e123279abbd1797ba281f35cbcba61136ef7bd /src/constants.rs | |
| parent | 98d7946709032aae5e1d0d35cff78efc55550900 (diff) | |
feat: implement generic engine for executor
Diffstat (limited to 'src/constants.rs')
| -rw-r--r-- | src/constants.rs | 5 |
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; |