Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
END_OF_MAIN(3)			 Allegro manual 		  END_OF_MAIN(3)

NAME
     END_OF_MAIN  -  Macro  to put after your main() function. Allegro game pro-
     gramming library.

SYNOPSIS
     #include <allegro.h>

     Macro END_OF_MAIN()

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()

SEE ALSO
Allegro 			  version 4.4.3 		  END_OF_MAIN(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=END_OF_MAIN&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help