mercredi 27 juillet 2016

A macro to extract characters of its input text and generate a code using them

Is there any macro that can get a text as input like "abc" and by text I literally mean text like the one mentioned not an array or anything else, then extract characters of that text and generate a selective piece of code like ones below at compile time:

first example of a piece of code :

Func1(a);
Func2(b);
Func3(c);

second example of a piece of code:

{'a','b','c'}

Aucun commentaire:

Enregistrer un commentaire