On Wed, Apr 29, 2026 at 2:24 PM Jiazi Li <[email protected]> wrote:
>
> Add str_alloc_free() helper to return "alloc" or "free"
> string literal depending on the boolean argument. Also add the
> inversed variant str_free_alloc().
...
> #define str_no_yes(v) str_yes_no(!(v))
>
> +static inline const char *str_alloc_free(bool v)
> +{
> + return v ? "alloc" : "free";
> +}
> +#define str_free_alloc(v) str_alloc_free(!(v))
The appearance of the function is sorted alphabetically.
--
With Best Regards,
Andy Shevchenko