I'm an idiot

Posted by Mark 21/08/2006 at 11h00

So, which of you smart-arse C hackers wants to make fun of me for writing this code?

#define error(format, …) printf(“fatal error %s.%d:” format “\n”, __FILE__, __LINE__ , __VA_ARGS__); exit(1)


if(!dir)
error(“Couldn’t open directory %s\n”, LIGHTSHOW_DIR);

Go on, laugh, you bastards.

(grumpily inserting brackets into macro defs as we speak)

Leave a comment

Comments