On Thu, 03.01.13 22:47, Thomas H.P. Andersen (pho...@gmail.com) wrote: > > assert_cc() for simple expressions where the expression is readable > > enough as is. > > > > assert_static() for complex expressions where it is worth specifying a > > human readable string. > > > > I hope this makes sense? > > yeah, makes sense. It also does not break the build for older > compilers :) Do you see warnings about mixed declarations and code? I > had to move some of the asserts to avoid that with my patch.
Yes, I did see those. And my dirty workaround was to simply enclose the assert_static() in a do { } while(false) block... That way it's always at the beginning of a {} block but still behaves like an individual expression. Lennart -- Lennart Poettering - Red Hat, Inc. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel