GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  END_OF_MAIN (3)

NAME

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

CONTENTS

Synopsis
Description
See Also

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

Search for    or go to Top of page |  Section 3 |  Main Index


Allegro END_OF_MAIN (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.