apio
bc07cc94cb
All checks were successful
continuous-integration/drone/push Build is passing
Also, add copyright information to individual files. This is going to be a hassle to do for EVERY file.
22 lines
689 B
C
22 lines
689 B
C
/**
|
|
* @file Main.h
|
|
* @author apio (cloudapio.eu)
|
|
* @brief Alternative C++ main function.
|
|
*
|
|
* @copyright Copyright (c) 2023, the Luna authors.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <luna/Result.h>
|
|
|
|
/**
|
|
* @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<int> A normal status code, or an errno code, which will be displayed along with an abnormal exit code.
|
|
*/
|
|
extern Result<int> luna_main(int argc, char** argv);
|