|
@@ -7,7 +7,7 @@ |
|
|
|
|
|
|
|
|
int main() { |
|
|
int main() { |
|
|
std::cout |
|
|
std::cout |
|
|
<< test_ctx_Controller_executeFunctions_set() |
|
|
|
|
|
|
|
|
<< test_ctx_Controller_executeFunctions_registerFunction_set() |
|
|
<< std::endl |
|
|
<< std::endl |
|
|
<< test_ctx_Controller_processQueue() |
|
|
<< test_ctx_Controller_processQueue() |
|
|
<< std::endl |
|
|
<< std::endl |
|
@@ -77,7 +77,25 @@ int main() { |
|
|
<< std::endl |
|
|
<< std::endl |
|
|
; |
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
ctx_Controller<memory_Context> ctrl(memory_createContext()); |
|
|
|
|
|
ctrl.registerFunctions({ |
|
|
|
|
|
cli_exit, |
|
|
|
|
|
cli_goOn, |
|
|
|
|
|
}); |
|
|
/* |
|
|
/* |
|
|
|
|
|
cli_greetUser, |
|
|
|
|
|
cli_promptSecondItemSelection, |
|
|
|
|
|
cli_reportMatchedItems, |
|
|
|
|
|
cli_reportMismatchedItems, |
|
|
|
|
|
cli_reportVictory, |
|
|
|
|
|
cli_selectItem, |
|
|
|
|
|
cli_showHelp, |
|
|
|
|
|
memory_detectMismatchedItems, |
|
|
|
|
|
memory_detectVictory, |
|
|
|
|
|
memory_generateConstPlayfield, |
|
|
|
|
|
memory_hideMatchingItems, |
|
|
|
|
|
memory_selectItem, |
|
|
|
|
|
]) |
|
|
|
|
|
|
|
|
auto c = shell_createContext(); |
|
|
auto c = shell_createContext(); |
|
|
c.cCLI = cli_createContext(); |
|
|
c.cCLI = cli_createContext(); |
|
|