From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Mon, 28 Jun 2021 16:52:44 +0200 Subject: [LTP] [PATCH 3/3] API: Cause GCC/Clang to blow up when TEST is used in the library In-Reply-To: <20210621113804.26179-3-rpalethorpe@suse.com> References: <20210621113804.26179-1-rpalethorpe@suse.com> <20210621113804.26179-3-rpalethorpe@suse.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Richie, > +#if LTPLIB > +#define TEST(SCALL) _Pragma("GCC error \"Do not use TEST macro in library\"") > +#define TEST_VOID(SCALL) _Pragma("GCC error \"Do not use TEST_VOID macro in library\"") It'd be nice to document "Do not use TEST() macro in library" in LTP Library API Writing Guidelines [1]. Kind regards, Petr [1] https://github.com/linux-test-project/ltp/wiki/LTP-Library-API-Writing-Guidelines