Can I achieve something similar to following code:
#define MODULE base
#if defined (MODULE ## _dll) <-- this should do `#ifdef base_dll`
...
#else
...
#endif
second line is obviously wrong. Can I do this somehow?
Thanks
Can I achieve something similar to following code:
#define MODULE base
#if defined (MODULE ## _dll) <-- this should do `#ifdef base_dll`
...
#else
...
#endif
second line is obviously wrong. Can I do this somehow?
Thanks
Copyright © 2021 Jogjafile Inc.
I don't think it is possible to check the definition of token-pasted macro like that (at least I don't know the way) but you can do this:
Perhaps if you describe what do you actually want to achieve there might be another way to do that.