geany/geany — comment on commit efcce8808e92ba56684605790959cb014a11c9c8
File:  line 0
By b4n:

Le 07/11/2011 03:45, Matthew Brush a écrit :
> I don't see why we even need macros for such short and common programming idioms.
> All they do is save a little bit of typing at the expense of making the code harder to follow.

I agree NZV() and NVL() doesn't save that much typing, but setptr does IMHO:

```C
gpointer tmp;

tmp = p;
p = g_strconcat(p, "foo", NULL);
g_free(p);
```

vs.

```C
setptr(p, g_strconcat(p, "foo", NULL));
```

(however I agree setptr should probably be uppercase to denote it's a macro)