Re: [AD] Magic main in Windows |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Was thinking some more, maybe like this, for OSX: /* In Allegro. */ int main(int argc, char **argv) { /* Possible create thread. */ dummy_main(argc, argv); } /* In allegro.h */ #define main dummy_main /* User program. */ int main(int argc, char **argv) { allegro_init (); while(!key[KEY_ESC]) { } } -- Elias Pschernig
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |