add SUB_NUMBER macro and schema to number (#4449)

* add SUB_NUMBER macro and schema

* add SUB_NUMBER macro and schema

* add SUB_NUMBER macro and schema
This commit is contained in:
Regev Brody
2023-02-19 21:54:00 +02:00
committed by GitHub
parent 40e2832e67
commit e68beb8a43
7 changed files with 77 additions and 18 deletions
+7
View File
@@ -23,6 +23,13 @@ namespace number {
} \
}
#define SUB_NUMBER(name) \
protected: \
number::Number *name##_number_{nullptr}; \
\
public: \
void set_##name##_number(number::Number *number) { this->name##_number_ = number; }
class Number;
/** Base-class for all numbers.