I'm writing C89 on MSFT Visual Studio 2010 Beta. How can I make an assertion, similar to Java's assert
keyword? I think I need to define a macro, but I'm not sure how. (It seems like this is something that's been done before, so I'd rather use that than try to roll my own.)
Here's a guess:
int assert(int truth_value) {
// crash the program with an appropriate error message
}