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.
---
Roy

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to