Welcome to little lamb

Code » limb » master » tree

[master] / src / liblimb / autoopt.h / autoopt_verbose.c

/* This file is part of limb                           https://lila.oss/limb
 * Copyright (C) 2023 Olivier Brunel                          jjk@jjacky.com */
/* SPDX-License-Identifier: GPL-2.0-only */
#include <limb/gccattributes.h>
#include <limb/autoopt.h>
#include <limb/obuffer.h>

int
autoopt_verbose(const struct option *option gccattr_unused, const char *arg gccattr_unused)
{
    if (obuffer_1->lvl < OLVL_MAXIMUM)
        obuffer_1->lvl += 50;
    return 1;
}