 |
wxMaxima
|
Go to the documentation of this file.
28 #ifndef WXMAXIMA_CELLIMPL_H
29 #define WXMAXIMA_CELLIMPL_H
31 #define DEFINE_CELL_TYPEINFO(type) \
32 const CellTypeInfo &type::GetInfo() \
34 class type##TypeInfo final : public CellTypeInfo { \
37 const wxString &GetName() const override { return S_(#type); } \
39 const type##TypeInfo static info; \
43 #define DEFINE_CELL_COPY(type) \
44 std::unique_ptr<Cell> type::Copy(GroupCell *group) const \
46 return std::make_unique<type>(group, *this); \
49 #define DEFINE_CELL(type) \
50 DEFINE_CELL_COPY(type) \
51 DEFINE_CELL_TYPEINFO(type) \