mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
a436f0c668
Before this change, we would need to write arguments.arguments to access the Span<>, which doesn't feel too pretty.
22 lines
305 B
C++
22 lines
305 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Error.h>
|
|
|
|
namespace Main {
|
|
|
|
struct Arguments {
|
|
int argc {};
|
|
char** argv {};
|
|
Span<StringView> strings;
|
|
};
|
|
|
|
}
|
|
|
|
ErrorOr<int> serenity_main(Main::Arguments);
|