All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 3/3] API: Cause GCC/Clang to blow up when TEST is used in the library
Date: Mon, 28 Jun 2021 16:52:44 +0200	[thread overview]
Message-ID: <YNniPHlHTVyiz74B@pevik> (raw)
In-Reply-To: <20210621113804.26179-3-rpalethorpe@suse.com>

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

  reply	other threads:[~2021-06-28 14:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21 11:38 [LTP] [PATCH 1/3] scripts/coccinelle: Add headers to lib checks and fix macro fix Richard Palethorpe
2021-06-21 11:38 ` [LTP] [PATCH 2/3] API: Remove TEST macro usage from library headers Richard Palethorpe
2021-06-21 11:38 ` [LTP] [PATCH 3/3] API: Cause GCC/Clang to blow up when TEST is used in the library Richard Palethorpe
2021-06-28 14:52   ` Petr Vorel [this message]
2021-06-29  7:15     ` Richard Palethorpe
2021-08-10 15:17 ` [LTP] [PATCH 1/3] scripts/coccinelle: Add headers to lib checks and fix macro fix Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YNniPHlHTVyiz74B@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.