/** * @file Main.h * @author apio (cloudapio.eu) * @brief Alternative C++ main function. * * @copyright Copyright (c) 2023, the Luna authors. * */ #pragma once #include /** * @brief The main() function for Luna C++ apps. This function is extern as it should be implemented by the user if they * do not implement the C main() function. * * @param argc The argc parameter passed to the regular main() function. * @param argv The argv parameter passed to the regular main() function. * @return Result A normal status code, or an errno code, which will be displayed along with an abnormal exit code. */ extern Result luna_main(int argc, char** argv);