sculpto
entry_point.h
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file entry_point.h
3 * \brief Sculpto library entry point definition module.
4 *
5 * \author Sabitov Kirill
6 * \date 18 June 2022
7 *********************************************************************/
8
9#ifndef __ENTRY_POINT_H
10#define __ENTRY_POINT_H
11
12#include "application.h"
13extern scl::application *scl::CreateApplication();
14
15/*!*
16 * Main programm function.
17 *
18 * \param argc - application run arguments count.
19 * \param argv - application run arguments array.
20 * \return system return code.
21 */
22int main(int argc, char *argv[])
23{
24 auto app = scl::CreateApplication();
25 app->Run();
26 delete app, app = nullptr;
27}
28
29#endif
int main(int argc, char *argv[])
Definition: entry_point.h:22
application * CreateApplication()