News for hackers. Stuff that matters.
Re:C99 tricks by guillaumec on Friday February 13, 2015 @07:52AM (#9044044)
I put a simplified version in the article to make it simple, but the macro I actually use in my games is slightly more advanced, and will output more informations about the error and its context.
Re:C99 tricks by to3m on Friday February 13, 2015 @08:31AM (#9044170)
Ah, right! - my first version was just the assert, and it was working fine until one day I ended up on a wild goose chase because I was certain it had to be GL_INVALID_OPERATION. But in fact... it was GL_INVALID_ENUM :) So I just thought I'd save somebody a couple of minutes.