Jump to content
Sign in to follow this  
BomosBoy

Preprocessor Arrays

Recommended Posts

I have a short question:

Is there a new simpler way to use arrays with multiple values in preprocessor commands?

The old way was:

#define COMMA ,
#define EXAMPLE(farg,sarg) EXAMPLE2(farg, sarg)
EXAMPLE("foo", ["bar" COMMA "othervalue"]);

I would like to find a way to use the normal syntax with just EXAMPLE("foo", ["bar", "othervalue"]);.

Is it possible with some tricks maby?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×