int main(int /* argc */, char ** /* argv */) { Debugger app; app.Run(); return 0; }
int main(int argc, const char* const* argv) { // We test-parse the arguments here, so, when we're started from the // terminal and there's an instance already running, we can print an error // message to the terminal, if something's wrong with the arguments. { Options options; parse_arguments(argc, argv, false, options); } Debugger app; status_t error = app.Init(); if (error != B_OK) { fprintf(stderr, "Error: Failed to init application: %s\n", strerror(error)); return 1; } app.Run(); return 0; }