Sometimes I wonder if I’m cut out to do any programming what so ever. This evening while playing with tying SDL, Agar, and OpenGL all together, I spent an hour and a half tracking down a single errant close bracket.

It was not helped by the fact that SDL helpfully, and silently, re#defines your normal ‘main’ entry point into SDL_main so it can supersede yours with its own. Had I known that simple fact I would not have had to spend the time trawling through SDL header files completely doubting my own sanity in how such a bug could be left in library code.

Not only this, but earlier in the afternoon I spent an equally rediculous amount of time wondering why I suddenly couldn’t declare a bool any more. In my foolish haste to copy & paste example code to begin hacking away at it I failed to notice the source file had a .c extension rather than .cpp. Good old MIME getting in the way once again.

Yes, I will be handing back my membership card in at the door on my way out, but by root I’ll earn that damn thing back again!!