dynamically allocate structures
This commit is contained in:
@@ -2,10 +2,11 @@
|
|||||||
#define KIMODEM_MODE_H
|
#define KIMODEM_MODE_H
|
||||||
|
|
||||||
|
|
||||||
static struct Mode {
|
struct Mode {
|
||||||
bool (*Process)();
|
bool (*Process)();
|
||||||
bool (*Update)();
|
bool (*Update)();
|
||||||
} *currentMode(nullptr);
|
};
|
||||||
|
|
||||||
|
|
||||||
|
static Mode *currentMode = new Mode;
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user