X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ffail.cpp;h=ab109d70241e3978978bbf6c60306088654bea6b;hp=4c3090fba67de7f6c3d7be0c73adb98e6f97cab1;hb=d54e497297f4687c385ff8fbc91296365887c7c0;hpb=444d1e293d87b78f0497a55c6a4dabad010f5b62 diff --git a/ginac/fail.cpp b/ginac/fail.cpp index 4c3090fb..ab109d70 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 of this is replaced by exceptions). */ + * Implementation of class signaling failure of operation. Considered + * somewhat obsolete (most of this can be replaced by exceptions). */ /* - * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2003 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 @@ -21,21 +21,23 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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(&basic::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)