aboutsummaryrefslogtreecommitdiff
path: root/forth/step8_macros.fs
diff options
context:
space:
mode:
Diffstat (limited to 'forth/step8_macros.fs')
-rw-r--r--forth/step8_macros.fs8
1 files changed, 4 insertions, 4 deletions
diff --git a/forth/step8_macros.fs b/forth/step8_macros.fs
index f01f3a9..7260567 100644
--- a/forth/step8_macros.fs
+++ b/forth/step8_macros.fs
@@ -232,13 +232,13 @@ defspecial macroexpand ( env list[_,form] -- form )
MalSymbol
extend mal-eval { env sym -- val }
- 0 sym env get
+ sym env env/get-addr
dup 0= if
drop
- ." Symbol '"
- sym as-native safe-type
- ." ' not found." cr
+ ." Symbol '" sym pr-str safe-type ." ' not found." cr
1 throw
+ else
+ @
endif ;;
drop