mirror of
https://github.com/janet-lang/janet
synced 2025-12-04 15:48:09 +00:00
Make jpm configurable for environments like MinGW.
This commit is contained in:
@@ -3315,7 +3315,11 @@
|
||||
[thunk source env where]
|
||||
(when (tuple? source)
|
||||
(def head (source 0))
|
||||
(def safe-check (safe-forms head))
|
||||
(def safe-check
|
||||
(or
|
||||
(safe-forms head)
|
||||
(if (symbol? head)
|
||||
(if (string/has-prefix? "define-" head) is-safe-def))))
|
||||
(cond
|
||||
# Sometimes safe form
|
||||
(function? safe-check)
|
||||
|
||||
Reference in New Issue
Block a user