Debian Codegraph @

addons/main/osx_main.m

raw
1 /* ______ ___ ___
2 * /\ _ \ /\_ \ /\_ \
3 * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
4 * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
5 * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
6 * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
7 * \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
8 * /\____/
9 * \_/__/
10 *
11 * main() function replacement for MacOS X.
12 *
13 * By Angelo Mottola.
14 *
15 * See readme.txt for copyright information.
16 */
17
18 #include "allegro5/allegro.h"
19 #include "allegro5/internal/aintern.h"
20 #include "allegro5/platform/aintosx.h"
21
22 #ifndef ALLEGRO_MACOSX
23 #error something is wrong with the makefile
24 #endif
25 #undef main
26
27 extern int _al_mangled_main(int, char **);
28
29 /* main:
30 * Replacement for main function.
31 */
32 int main(int argc, char *argv[])
33 {
34 _al_osx_run_main(argc, argv, _al_mangled_main);
35 return 0;
36 }
37
38 /* Local variables: */
39 /* c-basic-offset: 3 */
40 /* indent-tabs-mode: nil */
41 /* c-file-style: "linux" */
42 /* End: */