#ifndef STRINGS_H_INCLUDED #define STRINGS_H_INCLUDED namespace cx_light { class strings { public: enum selector { WINDOW_TITLE, LIGHTS_LIST, ADD_LIGHT }; const char* get(unsigned int); private: static const char* all_texts[]; }; #ifndef __ #define __(X) (strings().get(strings::selector::X)) #endif } #endif