I would like to do something in my code like
#if LINUX_SERIES_EXPERIMENTAL
#define assert (expr) if (!(expr)) {...}
#else /* LINUX_SERIES_STABLE, or neither symbol exists */
#define assert (expr)
#endif
so that lightweight assertions are in the experimental series, but
magically disappear in the stable series.
Thanks,
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/