その文字列テーブルは動的?静的? 今次のような文字列テーブルがあるとしましょう foo.inl DEFINE_FOO( foo, "Foo", "あああ" ) DEFINE_FOO( bar, "Bar", "いいい" ) DEFINE_FOO( baz, "Baz", "ううう" ) DEFINE_FOO( qux, "Qux", "えええ" ) foo.h enum eFoo { #undef DEFINE_FOO #define DEFINE_FOO( id, text1, text2 ) eFoo_##id, #include "foo.inl" #undef DEFINE_FOO elementsof_eFoo }; const char* get_foo_text1( eFoo foo ); const char* get_foo_text2( eFoo foo ); #def