dynamically allocate structures

This commit is contained in:
2023-10-07 16:28:54 -07:00
parent 4a888d23a5
commit 7c15300c69

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