by bsder · 7y ago · 0 comments
It's also not clear how to use that preprocessor example.
Here's what the example yields once preprocessed:
struct operator{
int priority;
const char *value;
};
struct operator operator_negate = {
.priority = 20,
.value = "!",
};
struct operator operator_different = {
.priority = 70,
.value = "!=",
};
struct operator operator_mod = {
.priority = 30,
.value = "%",
};old but gold
Still makes me laugh