We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8141ae1 commit a846f52Copy full SHA for a846f52
README
@@ -167,6 +167,7 @@ Implemented words:
167
2>R
168
2R>
169
2R@
170
+ unused
171
Extra:
172
words
173
dump-row-size
src/main.rs
@@ -1093,6 +1093,11 @@ const STATIC_DICTIONARY: &[StaticDictionaryEntry] = &[
1093
let number = env.data_stack.pop().unwrap() as usize;
1094
print!("{} ", env.format_number(number, alignment));
1095
}),
1096
+ declare_primitive!("unused", env, {
1097
+ env.data_stack
1098
+ .push(env.data_space_manager.unused_area.len() as Cell)
1099
+ .unwrap();
1100
+ }),
1101
];
1102
1103
const FORTH_RUNTIME_INIT: &str = include_str!(concat!(env!("OUT_DIR"), "/runtime.fth"));
0 commit comments