5 ms·
That's great news, I always felt the whole SDL_main thing to be quite evil.
by pgz 13y ago
That's great news, I always felt the whole SDL_main thing to be quite evil.
- exDM69 13y ago> That's great news, I always felt the whole SDL_main thing to be quite evil. Evil or not, it solves a practical problem that you would have to work around if SDL did not. And AFAIK, you have always had the option of not using SDL_main if you wish to solve the problem on your own. On desktop platforms the program entry point is pretty easy to solve (main vs. WinMain) with an SDL_main-style macro or command line args on win32 compilers. But when you start working with iOS and Android, it gets more hairy.
- pgz 13y agoOn OS X main was wrapped in a function that made it work with the Finder (manipulating an argv containing --psn). It was annoying to me because I worked on a application that did the same thing internally and where SDL was not a hard dependency. But well, it's not that bad as I make it sound.
- lclarkmichalek 13y agoIt did make writing bindings for other languages rather interesting