Loading...
Searching...
No Matches
Go to the documentation of this file.
30#ifndef WXMAXIMA_CELLIMPL_H
31#define WXMAXIMA_CELLIMPL_H
33#define DEFINE_CELL_TYPEINFO(type) \
34 const CellTypeInfo &type::GetInfo() \
36 class type##TypeInfo final : public CellTypeInfo { \
39 const wxString &GetName() const override { return S_(#type); } \
41 const type##TypeInfo static info; \
45#define DEFINE_CELL_COPY(type) \
46 std::unique_ptr<Cell> type::Copy(GroupCell *group) const \
48 return std::make_unique<type>(group, *this); \
51#define DEFINE_CELL(type) \
52 DEFINE_CELL_COPY(type) \
53 DEFINE_CELL_TYPEINFO(type) \