All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Liu Jaloo <liu.jaloo@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: constructor vs. __constructor__
Date: Thu, 24 Aug 2023 07:54:14 +0200	[thread overview]
Message-ID: <87jztlt27t.fsf@pond.sub.org> (raw)
In-Reply-To: <CAOYM0N261g8zrDKq2jQo4mriHEhNXWo-oXZ0LCryL+BmUX-h6g@mail.gmail.com> (Liu Jaloo's message of "Thu, 24 Aug 2023 11:24:00 +0800")

Liu Jaloo <liu.jaloo@gmail.com> writes:

> What's the difference between  "__attribute__((constructor))" and
> "__attribute__((__constructor__))" in qemu source?

Reading the fine manual helps:

    You may optionally specify attribute names with ‘__’ preceding and
    following the name.  This allows you to use them in header files
    without being concerned about a possible macro of the same name. For
    example, you may use the attribute name __noreturn__ instead of
    noreturn.

https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html



  reply	other threads:[~2023-08-24  5:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24  3:24 constructor vs. __constructor__ Liu Jaloo
2023-08-24  5:54 ` Markus Armbruster [this message]
2023-08-24  9:33   ` Peter Maydell
2023-08-25  1:09     ` Liu Jaloo

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=87jztlt27t.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=liu.jaloo@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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.