#define GETSTRING(s) return #s
enum a_type { SMALL, MEDIUM, LARGE };
const char* get_data(a_type a) { return GETSTRING(a); }
int main() {
a_type at = SMALL;
const char* s = get_data(at);
return 0;
}
コンパイラ エラーが発生します。
main.cpp(5): エラー C2059: 構文エラー: 'return'
私は何を間違えましたか?