1END_OF_MAIN(3) Allegro manual END_OF_MAIN(3)
2
3
4
6 END_OF_MAIN - Macro to put after your main() function. Allegro game
7 programming library.
8
10 #include <allegro.h>
11
12
13 Macro END_OF_MAIN()
14
16 In order to maintain cross-platform compatibility, you have to put this
17 macro at the very end of your main function. This macro uses some
18 `magic' to mangle your main procedure on platforms that need it like
19 Windows, some flavours of UNIX or MacOS X. On the other platforms this
20 macro compiles to nothing, so you don't have to #ifdef around it. Exam‐
21 ple:
22
23 int main(void)
24 {
25 allegro_init();
26 /* more stuff goes here */
27 ...
28 return 0;
29 }
30 END_OF_MAIN()
31
32
34Allegro version 4.4.3 END_OF_MAIN(3)