- Improve ruby block detection heuristics - Add block information storage and block aware movements. - Other minor fixes
22 lines
421 B
C++
22 lines
421 B
C++
#include "bed.h"
|
|
#include "pch.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
std::vector<std::string> args(argv, argv + argc);
|
|
try {
|
|
bed::BEd ed(args);
|
|
ed.run();
|
|
} catch (bed::fatal_error &e) {
|
|
if (e.code)
|
|
std::cout << "Fatal error: " << e.what() << std::endl;
|
|
return e.code;
|
|
}
|
|
#ifndef DEBUG
|
|
catch (...) {
|
|
std::cout << "Unexpected error." << std::endl;
|
|
return 1;
|
|
}
|
|
#endif
|
|
return 0;
|
|
}
|