mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-13 21:02:47 -08:00
New function GLOBAL-VAR-P
This commit is contained in:
parent
61d4c99781
commit
f07de591f3
1 changed files with 5 additions and 0 deletions
|
|
@ -213,6 +213,11 @@
|
|||
(and (not (member (var-kind var) '(LEXICAL CLOSURE SPECIAL GLOBAL REPLACED)))
|
||||
(var-kind var)))
|
||||
|
||||
(defun global-var-p (var)
|
||||
(let ((kind (var-kind var)))
|
||||
(or (eq kind 'global)
|
||||
(eq kind 'special))))
|
||||
|
||||
(defun c2var (vref) (unwind-exit vref))
|
||||
|
||||
(defun c2location (loc) (unwind-exit loc))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue