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