X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ffail.cpp;h=edc5852df684918ccdf47b9f4da0faa17b0fd86f;hp=bbbff1b2a270cd068d302947b990d95cbb975dc5;hb=9d92d4b442fc4c1a95685884be4ba0494cd02bbe;hpb=cfea748404dec5fb2f2e3310d36eeb6640f13824 diff --git a/ginac/fail.cpp b/ginac/fail.cpp index bbbff1b2..edc5852d 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-2008 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,35 +18,37 @@ * * 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 "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 ////////// -DEFAULT_ARCHIVING(fail) - ////////// // functions overriding virtual functions from base classes ////////// DEFAULT_COMPARE(fail) DEFAULT_PRINT(fail, "FAIL") +GINAC_BIND_UNARCHIVER(fail); } // namespace GiNaC