emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why have a #if .... #else .... #endif construct in Emacs Lisp, when


From: Emanuel Berg
Subject: Re: Why have a #if .... #else .... #endif construct in Emacs Lisp, when we could make the existing code DTRT unchanged?
Date: Fri, 08 Sep 2023 19:54:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

> Will it drop byte-compiler warnings as well from the part
> that is dropped?

They are dropped,

(static-if (< 1 2)
    (no-function-one) ; warning here, ‘no-function-one’ not defined
  (no-function-two) ) ; but no warning here

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0)
of 2023-09-08 [commit a2f977d94e0356c7414876e988adedd2ab7b52f2]

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]