Alexander Tarasikov
Alexander Tarasikov @astarasikov ·
Replying to @chompie1337
@chompie1337 Next: defining a type for error codes and a macro to wrap it #define CHECK(cond) do { if (!(cond)) { printf("Failed: '%s'\n", #cond); goto cleanup;} } while (0) Funny how much hate goto gets whereas it's mostly a style thing whereas most of the nasty bugs are array access
2
1