[haiku-commits] Re: haiku: hrev52830 - headers/os/kernel src/system/libnetwork src/kits/network/libnetapi headers/private/system src/kits/app

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 02 Feb 2019 21:16:45 +0100

Le 2 février 2019 17:22:18 GMT+01:00, waddlesplash <waddlesplash@xxxxxxxxx> a 
écrit :

On Sat, Feb 2, 2019, 4:46 AM Adrien Destugues <pulkomandy@xxxxxxxxxxxxx
wrote:

We could declare a static const char[0] in the macro and use that,
it would not embed the function name this way. This would insert
something of size 0, which is closer to not inserting anything.


How? This macro is mostly used as an argument to function calls. We
can't
easily define a variable here, and what ones we could may get inlined
or
just placed on the stack, which isn't helpful.

-waddlesplash



({static char foo[0]; &foo;})

It's a gcc extension, but I think that's ok.
Also, +1 on making your changes go through Gerrit

Other related posts: