Version 2 (modified by 10 years ago) (diff) | ,
---|
Table of Contents
Catharsis for annoyances in life, ranging from infuriating idiocies to minor annoyances that could even have justifiable causes.
ANTLR file naming
% antlr3 BlahBlah.g error(8): file BlahBlah.g contains grammar FooBar; names must be identical
Seriously. Why the fuck do you care about the name of my file.
Visual Studio 2010 variadic macros
#define FOO(a, b, c, d, e, f, g, h, ...) h #define COUNT(...) FOO(__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0) int x = COUNT(0, 0, 0); printf("This macro has %d arguments\n"), x);
Fuck you, Visual Studio, for printing 1 where every other compiler on the planet can count to 3.