Suppress docstring control char warning in macro-generated function

* lisp/progmodes/cc-defs.el (c-lang-defconst):
Make sure that `val` won't be treated as a docstring.
This commit is contained in:
Mattias Engdegård 2024-02-24 12:08:09 +01:00
parent 4eed2768b1
commit eeb89a5cb2

View file

@ -2579,7 +2579,8 @@ constant. A file is identified by its base name."
;; dependencies on the `c-lang-const's in VAL.)
(setq val (c--macroexpand-all val))
(setq bindings `(cons (cons ',assigned-mode (lambda () ,val)) ,bindings)
(setq bindings `(cons (cons ',assigned-mode (lambda () nil ,val))
,bindings)
args (cdr args))))
;; Compile in the other files that have provided source