X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Ffail.cpp;h=d37e05757b89ca77002f91d75c2d0b140d152fae;hb=7ce37343749aaf8e16c622cf5ee6c5edfe9abc0b;hp=3818538f90a810587dd1d945fa0bf7234b2542c3;hpb=06eb6b761f4b9d9eed4decd8ed50d94b40b94a0e;p=ginac.git diff --git a/ginac/fail.cpp b/ginac/fail.cpp index 3818538f..d37e0575 100644 --- a/ginac/fail.cpp +++ b/ginac/fail.cpp @@ -1,10 +1,10 @@ /** @file fail.cpp * * Implementation of class signaling failure of operation. Considered - * obsolete all this stuff ought to be replaced by exceptions. */ + * somewhat obsolete (most of this can be replaced by exceptions). */ /* - * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,24 +18,26 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "fail.h" -#include "print.h" #include "archive.h" -#include "debugmsg.h" #include "utils.h" namespace GiNaC { -GINAC_IMPLEMENT_REGISTERED_CLASS(fail, basic) +GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(fail, basic, + print_func(&fail::do_print). + print_func(&fail::do_print_tree)) ////////// -// default ctor, dtor, copy ctor assignment operator and helpers +// default constructor ////////// -DEFAULT_CTORS(fail) +DEFAULT_CTOR(fail) ////////// // archiving @@ -44,7 +46,7 @@ DEFAULT_CTORS(fail) DEFAULT_ARCHIVING(fail) ////////// -// functions overriding virtual functions from bases classes +// functions overriding virtual functions from base classes ////////// DEFAULT_COMPARE(fail)