defsubr snarfing
authorBT Templeton <bpt@hcoop.net>
Fri, 3 Aug 2012 04:43:03 +0000 (00:43 -0400)
committerRobin Templeton <robin@terpri.org>
Sat, 18 Apr 2015 22:49:09 +0000 (18:49 -0400)
* src/lisp.h (DEFUN): Use `SCM_SNARF_INIT' to generate a defsubr call.

src/lisp.h

index d830cf4..0900c88 100644 (file)
@@ -2401,6 +2401,7 @@ CHECK_NUMBER_CDR (Lisp_Object x)
 #else  /* not _MSC_VER */
 #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc)    \
    SCM_SNARF_INIT (defsubr (&sname);)                                   \
+   Lisp_Object fnname DEFUN_ARGS_ ## maxargs ;                         \
    static struct Lisp_Subr alignas (GCALIGNMENT) sname =               \
    { { .self = NULL,                                                    \
        .size = PVEC_SUBR << PSEUDOVECTOR_AREA_BITS },                   \