What is a macro predicate in LISP

Does anyone know what to predict whether to check a character with a macro in lisp?

+4
source share
1 answer

You can use macro-function :

CL-USER> (defmacro foo () ''foo) FOO CL-USER> (defun bar () 'bar) BAR CL-USER> (macro-function 'foo) #<Compiled-function FOO Macroexpander #x187F0026> CL-USER> (macro-function 'bar) NIL 
+7
source

Source: https://habr.com/ru/post/1447437/


All Articles