X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ffail.cpp;h=7664ebfe39853cb399061f68d8999686e64bf13e;hp=92aaa102dd26a452593b1263845d303bebc8723b;hb=6afbb9793e359cf388462c471ea256a6662b0cd4;hpb=68fdf425abf14d016d5f95ee7b9d06a19a3c5926 diff --git a/ginac/fail.cpp b/ginac/fail.cpp index 92aaa102..7664ebfe 100644 --- a/ginac/fail.cpp +++ b/ginac/fail.cpp @@ -4,7 +4,7 @@ * somewhat obsolete (most of this can be replaced by exceptions). */ /* - * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2009 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,19 +18,20 @@ * * 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" +#include + 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 constructor @@ -42,13 +43,12 @@ 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