23 lines
420 B
C++
23 lines
420 B
C++
#include <iostream>
|
|
#include <exception>
|
|
#include <mind.h>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
hk::Mind mind;
|
|
|
|
try {
|
|
std::cout <<PACKAGE_NAME <<" " <<PACKAGE_VERSION <<std::endl;
|
|
}
|
|
catch (const std::exception& e) {
|
|
std::cerr << "Exception occurred: " <<e.what() <<std::endl;
|
|
return EXIT_FAILURE;
|
|
}
|
|
catch (...) {
|
|
std::cerr << "Unknown exception occurred" <<std::endl;
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
return 0;
|
|
}
|