mirror of
https://github.com/usatiuk/psil.git
synced 2025-10-28 18:57:48 +01:00
> in repl
This commit is contained in:
@@ -57,8 +57,10 @@ void parse_options(int argc, char *argv[]) {
|
|||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
try {
|
try {
|
||||||
|
// Just to be safe initialize everything in proper order
|
||||||
Options::reset();
|
Options::reset();
|
||||||
Logger::reset();
|
Logger::reset();
|
||||||
|
MemoryContext::get();
|
||||||
|
|
||||||
parse_options(argc, argv);
|
parse_options(argc, argv);
|
||||||
|
|
||||||
@@ -100,7 +102,7 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
if (Options::get_bool("repl"))
|
if (Options::get_bool("repl"))
|
||||||
while (true) {
|
while (true) {
|
||||||
std::cout << std::endl;
|
std::cout << std::endl << "> ";
|
||||||
vm.loadControl(repl);
|
vm.loadControl(repl);
|
||||||
vm.run();
|
vm.run();
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user