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=fdbcd40f23fc36b110b715d189125c77f77a8d8d;hpb=68fdf425abf14d016d5f95ee7b9d06a19a3c5926 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