Browse Source

posix console/scripts: treat lines starting with # as comment

sbg
Beat Küng 9 years ago
parent
commit
5b811facab
  1. 4
      src/platforms/posix/main.cpp

4
src/platforms/posix/main.cpp

@ -119,12 +119,10 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail) @@ -119,12 +119,10 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail)
}
}
} else if (command.compare("help") == 0) {
list_builtins();
} else if (command.length() == 0) {
} else if (command.length() == 0 || command[0] == '#') {
// Do nothing
} else {

Loading…
Cancel
Save