I want to create several variables of the form:
static char fooObjectKey;
static char bazObjectKey;
static char wthObjectKey;
static char myObjectObjectKey;
...
So I wrote
#define defineVar(x) static char #x ObjectKey
defineVar(foo);
defineVar(baz);
defineVar(wth);
defineVar(myObject);
but I get the error: Expected identifier or }
What am I doing wrong here? :) Any help is appreciated