On 16 June 2006 09:38, Laurynas Biveinis wrote: > Hi, > > I'm somewhat stuck with debugging GCC+Boehm's GC bootstrap failure. At > one point cpplib starts producing cpp_string objects with len = 0. > They crash cpp_interpret_string. I'd like to add some assertions to > the code to catch zero-length cpp_strings as early as possible, but I > don't see any assertions in libcpp - neither assert nor gcc_assert. > What could I use there?
Define a macro, call it libcpp_assert, then it doesn't matter if you equate it to assert or gcc_assert; you're working on a branch, you can worry about how to properly define it when you merge back to mainline and in the meantime you can make it work however you like to be getting on with. cheers, DaveK -- Can't think of a witty .sigline today....