+/** Macro for inclusion in the declaration of a print_context class.
+ * It declares some functions that are common to all classes derived
+ * from 'print_context' as well as all required stuff for the GiNaC
+ * registry. */
+#define GINAC_DECLARE_PRINT_CONTEXT(classname, supername) \
+ GINAC_DECLARE_PRINT_CONTEXT_COMMON(classname) \
+ typedef supername inherited; \
+ const GiNaC::print_context_class_info &get_class_info() const override { return classname::get_class_info_static(); } \
+ const char *class_name() const override { return classname::get_class_info_static().options.get_name(); } \
+ classname * duplicate() const override { return new classname(*this); } \
+private:
+