ladybird/Libraries/LibMain/Main.h

28 lines
472 B
C
Raw Normal View History

/*
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
2022-02-14 17:19:35 +00:00
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Error.h>
2022-02-14 17:19:35 +00:00
#include <AK/Span.h>
#include <AK/StringView.h>
namespace Main {
struct Arguments {
int argc {};
char** argv {};
Span<StringView> strings;
};
int return_code_for_errors();
void set_return_code_for_errors(int);
}
ErrorOr<int> serenity_main(Main::Arguments);