From: Denis Kenzior <denkenz@gmail.com>
To: Grant Erickson <gerickson@nuovations.com>, ell@lists.linux.dev
Subject: Re: [PATCH] util: Add portable casting preprocessor macros.
Date: Thu, 28 Mar 2024 17:31:52 -0500 [thread overview]
Message-ID: <ca540900-42a8-49a9-b7b9-869ac802c874@gmail.com> (raw)
In-Reply-To: <20240328172546.123434-1-gerickson@nuovations.com>
Hi Grant,
On 3/28/24 12:25, Grant Erickson wrote:
> ELL itself is a pure C source-based project and is compiled as such.
> However, if ELL headers and interfaces end up getting integrated with
> and compiled in a C++ environment, certain assignments within ELL inline
> header functions may be flagged by the C++ compiler as errors or
> warnings.
>
> The added casting preprocessor macros are generally useful across any
> source based that might want to leverage them from ELL. However, within
> ELL, they should be used in inline header functions where such functions
> may be consumed in either a C or C++ environment with a towards
> L_PERMISSIVE_CAST where possible. Since L_PERMISSIVE_CAST is not a cast
> at all in C, it will not mask otherwise-legitimate warnings in that
> environment.
> ---
> ell/util.h | 33 ++++++++++++++++++++++++++++-----
> 1 file changed, 28 insertions(+), 5 deletions(-)
>
Applied, thanks.
Regards,
-Denis
prev parent reply other threads:[~2024-03-28 22:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 17:25 [PATCH] util: Add portable casting preprocessor macros Grant Erickson
2024-03-28 22:31 ` Denis Kenzior [this message]
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=ca540900-42a8-49a9-b7b9-869ac802c874@gmail.com \
--to=denkenz@gmail.com \
--cc=ell@lists.linux.dev \
--cc=gerickson@nuovations.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).