d
This commit is contained in:
20
v4/main.cpp
20
v4/main.cpp
@@ -108,22 +108,12 @@ int main() {
|
|||||||
ctrl.registerCallback(printOutput);
|
ctrl.registerCallback(printOutput);
|
||||||
ctrl.registerFieldCallback("exit", [](memory_Context c) { exit(0); });
|
ctrl.registerFieldCallback("exit", [](memory_Context c) { exit(0); });
|
||||||
|
|
||||||
/*
|
ctrl.set("didLaunch", true);
|
||||||
|
ctrl.set("playfieldSize", 2);
|
||||||
auto c = shell_createContext();
|
|
||||||
c.cCLI = cli_createContext();
|
|
||||||
c = shell_launch(c);
|
|
||||||
std::cout << c.output << std::endl;
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
std::string line;
|
std::string ln;
|
||||||
getline(std::cin, line);
|
getline(std::cin, ln);
|
||||||
c.input = line;
|
ctrl.set("input", ln);
|
||||||
c = shell_processInput(c);
|
|
||||||
if (c.exit) {
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
std::cout << c.output << std::endl;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user