polserver/pol-core/pol/PolMain.cpp
turleypol 21577d8e5b
Clang Tidy concat namespaces (#855)
* tidy

* Automated clang-tidy change: modernize-concat-nested-namespaces

* compile test

* fix namespace

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-17 10:30:21 +01:00

37 lines
954 B
C++

#include "PolMain.h"
#include "../clib/Program/ProgramMain.h"
#include "pol.h"
namespace Pol::Clib
{
using namespace std;
///////////////////////////////////////////////////////////////////////////////
PolMain::PolMain() : ProgramMain() {}
PolMain::~PolMain() = default;
///////////////////////////////////////////////////////////////////////////////
void PolMain::showHelp()
{
// no help available
}
int PolMain::main()
{
// TODO: merge the following with all the other xmain* functions
return Pol::xmain_outer( programArgsFind( "test" ) );
}
} // namespace Pol::Clib
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
int main( int argc, char* argv[] )
{
Pol::Clib::PolMain* polMain = new Pol::Clib::PolMain();
polMain->start( argc, argv );
}