On Nov 3, 2014 8:12 AM, "Jef Driesen" <jef@libdivecomputer.org> wrote:
>
>
> I still prefer to have proper integration of the logging functions. Calling ERROR from your report_error is an ugly hack that throws away several of the nice features of the ERROR macro.

By it fixes one huge big mistake in that macro namely the broken return value. Even if I could use the enums (which are not appropriate), the enum you return is useless, since it's "success*.

But i can make my wrapper a macro, that _just_ fixes the return value. That ok?

    Linus