コード例 #1
0
ファイル: hdb.cpp プロジェクト: mariuz/haiku
int
main(int /* argc */, char ** /* argv */)
{
    Debugger app;
    app.Run();

    return 0;
}
コード例 #2
0
ファイル: Debugger.cpp プロジェクト: mmanley/Antares
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;
}