Basically I want to split single token to multiple tokens enclosed in single quotes but as this seems impossible I've stopped on this. Basically:
#include <boost/preprocessor/seq/enum.hpp>
char string[] = {BOOST_PP_SEQ_ENUM((F)(l)(y)(O)(f)(f)(L)(e)(d)(g)(e))};
However how could I add the single quotes in?
I don't believe it's possible to create character literals in standard compliant C, see C preprocessor: How to create a character literal? .
However, if you just want characters, you do have a few options:
You can expand it to a string literal with
BOOST_PP_STRINGIZEandBOOST_PP_SEQ_CAT:Live on Godbolt
You can expand each character to
"c"[0]:Live on Godbolt