#include <Pith/Config.hpp>
#include <Pith/Version.hpp>
#include <iostream>

extern "C" int pith_main(int argc, char** argv) {
	std::cout << "Pith version " << Pith::Version::STRING << " " << Pith::Version::COMMIT
		  << std::endl;
	return 0;
}

/// When no main is defined, pith defines a main that prints version information.
// int main (int argc, char** argv) __attribute__((weak alias("pith_main")));
#pragma weak main = pith_main

#include <Pith/Config.hpp>
#include <Pith/Version.hpp>
#include <iostream>

extern "C" auto pith_main([[maybe_unused]] int argc, [[maybe_unused]] char** argv) -> int {
	std::cout << "Pith version " << Pith::Version::STRING << " " << Pith::Version::COMMIT
		  << std::endl;
	return 0;
}

/// When no main is defined, pith defines a main that prints version information.
// int main (int argc, char** argv) __attribute__((weak alias("pith_main")));
#pragma weak main = pith_main

Mark parameters of weak main as unused
Mark parameters of weak main as unused

Signed-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>
