aboutsummaryrefslogtreecommitdiff
path: root/test.lisp
diff options
context:
space:
mode:
authorAnthony Wang2021-12-08 12:32:27 -0600
committerAnthony Wang2021-12-08 12:32:27 -0600
commit9e38c72d03320a935200427602f8220c4008eef7 (patch)
treed6eed616cd97064cd51a0960c0c7ebfbd2d44fdc /test.lisp
parente339bd98fd86a875bf797106349ee312773b60b3 (diff)
Fix Lisp package locking
Diffstat (limited to 'test.lisp')
-rw-r--r--test.lisp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test.lisp b/test.lisp
index f362c4d..8cfe478 100644
--- a/test.lisp
+++ b/test.lisp
@@ -1,7 +1,10 @@
;; Common Lisp
-(defun gcd (a b)
- (if (> b 0) (gcd b (mod a b)) a)
+(require '#:package-locks)
+(ext:without-package-locks
+ (defun gcd (a b)
+ (if (> b 0) (gcd b (mod a b)) a)
+ )
)
(princ "test")