logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

END_OF_MAIN - Macro to put after your main() function. Allegro game programming library.

Description

       In  order  to  maintain  cross-platform compatibility, you have to put this macro at the very end of your
       main function. This macro uses some `magic' to mangle your main procedure on platforms that need it  like
       Windows,  some flavours of UNIX or MacOS X. On the other platforms this macro compiles to nothing, so you
       don't have to #ifdef around it. Example:

          int main(void)
          {
             allegro_init();
             /* more stuff goes here */
             ...
             return 0;
          }
          END_OF_MAIN()

Name

       END_OF_MAIN - Macro to put after your main() function. Allegro game programming library.

See Also

Allegro                                           version 4.4.3                             END_OF_MAIN(3alleg4)

Synopsis

#include<allegro.h>MacroEND_OF_MAIN()

See Also