dynamically allocate structures

This commit is contained in:
Kyle Isom 2023-10-07 16:28:54 -07:00
parent 4a888d23a5
commit 7c15300c69
1 changed files with 3 additions and 2 deletions

View File

@ -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