lkml.org 
[lkml]   [2020]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 09/24] dyndbg: add maybe(str,"") macro to reduce code
On Sat, Jun 13, 2020 at 10:14 AM Joe Perches <joe@perches.com> wrote:
>
> On Sat, 2020-06-13 at 09:57 -0600, Jim Cromie wrote:

> > +#define maybe(str, empty) ( str ? str : empty )
>
> This macro is unnecessary.
>
> An even shorter very commonly used gcc extension would be
>
> str ?: empty
>

ooh yes. I'll do this

\
 
 \ /
  Last update: 2020-06-15 22:51    [W:0.151 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site