Hi!
[David Mosberger-Tang]
>
> >>>>> On Sun, 15 Oct 2000 20:13:32 +0200, Jochen Eisinger <jochen.eisinger@gno.de> said:
> Jochen> I had a look at it. I thought, we could define DBG like this
> Jochen> #define DBG sanei_debug_set(DBG_LEVEL, STRINGIFY(BACKEND_NAME));
> Jochen> but this fails on code like this
> Jochen> if (...) DBG(...) else ...
> Jochen> I also don't see an easy way arround this
>
> #define DBG do {sanei_debug_set(DBG_LEVEL, STRINGIFY(BACKEND_NAME));} while (0)
>
> --david
Sorry, my mistake: I forgot that my mail client warps lines at 78
chars...
I meant:
#define DBG \
sanei_debug_set(DBG_LEVEL. STRINGIFY(BACKEND_NAME)); \
sanei_debug
... and that doesn't work :)
-- jochen
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:52:46 PDT