X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Futils.h;h=e654bf885472028f58682aef9c0c55c1933cbca8;hp=0af6707afbb85c4a911d7404c58a0f4426e23dc4;hb=1ed8f877ea0ca066c276d5bea08f2e775559aa81;hpb=1c5f50be3b99721e70d51cb3c18f556d71f99861 diff --git a/ginac/utils.h b/ginac/utils.h index 0af6707a..e654bf88 100644 --- a/ginac/utils.h +++ b/ginac/utils.h @@ -462,23 +462,16 @@ int classname::compare_same_type(const basic & other) const \ } #define DEFAULT_PRINT(classname, text) \ -void classname::print(const print_context & c, unsigned level) const \ +void classname::do_print(const print_context & c, unsigned level) const \ { \ - if (is_a(c)) \ - inherited::print(c, level); \ - else \ - c.s << text; \ + c.s << text; \ } #define DEFAULT_PRINT_LATEX(classname, text, latex) \ -void classname::print(const print_context & c, unsigned level) const \ +DEFAULT_PRINT(classname, text) \ +void classname::do_print_latex(const print_latex & c, unsigned level) const \ { \ - if (is_a(c)) \ - inherited::print(c, level); \ - else if (is_a(c)) \ - c.s << latex; \ - else \ - c.s << text; \ + c.s << latex; \ } } // namespace GiNaC