aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArun Isaac2021-02-05 15:59:59 +0530
committerArun Isaac2021-02-05 15:59:59 +0530
commite151e74563aa2fe9ef4609ca85f5e049cb90d4c4 (patch)
treea4cfadda8b06b48d60e8fa3bb03a5f569b0e5aac /src
parent1bbb62ace6da1e258f9781d82311a6b696abf57e (diff)
downloadnsmc-e151e74563aa2fe9ef4609ca85f5e049cb90d4c4.tar.gz
nsmc-e151e74563aa2fe9ef4609ca85f5e049cb90d4c4.tar.lz
nsmc-e151e74563aa2fe9ef4609ca85f5e049cb90d4c4.zip
Use let* instead of declare and set.
* src/macros/macros.sc (with-alloc): Use let* instead of declare and set.
Diffstat (limited to 'src')
-rw-r--r--src/macros/macros.sc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/macros/macros.sc b/src/macros/macros.sc
index 6ffc7ec..78e38dc 100644
--- a/src/macros/macros.sc
+++ b/src/macros/macros.sc
@@ -5,8 +5,6 @@
body ...))
(sc-define-syntax (with-alloc var type allocate free body ...)
- (let* ()
- (declare var type)
- (set var allocate)
+ (let* ((var type allocate))
body ...
(free var)))