On Sat, 12 Apr 2008, Roy Stogner wrote:
> I'll Cc: this to the list for comments; I'll post again when I'm done
> with the changes.
error() is now replaced by libmesh_error(), and the original error()
gives a runtime "deprecated" message.
assert() is now replaced by libmesh_assert(), and since it's easy
enough for user codes to add #include <cassert> for backwards
compatibility, I took that include line out of libmesh_common.h.
For anyone using the SVN head: we'll still have the old error() macro
around at least through the next official release, but since it causes
a namespace conflict with other development tools we'll be taking it
out altogether afterward. You'll want to change your app codes to use
libmesh_error() instead before that sneaks up on you. Changing app
codes to use libmesh_assert() isn't necessary if you include the
assert.h header yourself, but libmesh_assert() is getting some
features (stack traces dumped to files, a catchable exception thrown)
that are helping me with parallel debugging and might help you too.