Unified AppEsp and AppSim into a single App module (#94)
This commit is contained in:
committed by
GitHub
parent
d7b151ab88
commit
03d14ef74b
@@ -0,0 +1,12 @@
|
||||
#include "Simulator.h"
|
||||
|
||||
MainFunction mainFunction = nullptr;
|
||||
|
||||
void setMainForSim(MainFunction newMainFunction) {
|
||||
mainFunction = newMainFunction;
|
||||
}
|
||||
|
||||
void executeMainFunction() {
|
||||
assert(mainFunction);
|
||||
mainFunction();
|
||||
}
|
||||
Reference in New Issue
Block a user