PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/apps/shell/main.c

http://ftk.googlecode.com/
C | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | 6278eb21ec90c3e8126e085c79d437d5 MD5 | raw file
 1#include "ftk.h"
 2#include "ftk_app_shell.h"
 3
 4#ifdef HAS_MAIN
 5int main(int argc, char* argv[])
 6#else
 7Ret ftk_main(int argc, char* argv[])
 8#endif
 9{
10	FtkApp* app = NULL;
11
12#ifdef HAS_MAIN
13	ftk_init(argc, argv);
14#endif
15
16	app = ftk_app_shell_create();
17	ftk_app_run(ftk_app_shell_create(), argc, argv);
18
19#ifdef HAS_MAIN
20	ftk_run();
21#endif
22
23	return RET_OK;
24}
25