As the topic suggest, could it be possible to have a compiler option that list all -D (defines) used in a projet, in a lib or in the std lib please ?
I think it could be good because sometimes it’s hard to find
Thanks for your answer.
I think I have not explained well my request :
I wanted to know all the defines that are available in a lib, in a projet, not the ones used (activated)
For example if somewhere in a used code there is a #if canvas … #end , so I want to get this one.
It could give me the possibilities…
Maybe it’s more clear ?
I just read that.
But I don’t understand why it couldn’t be possible because Haxe compiler parse all the used code and looks at the defines, so when it read one (to check if it’s activated) it could easily push it in an array, don’t you think ?
Writing them in haxelib could be a good thing but many people wouldn’t fill it IMHO. or just forgot between versions.
Having a simple list could help yes if the defines are well named, their name have a sense.
For example #webgl, #cairo, #canvas talk by themselves I think. And once again, I think, maybe I’m wrong, that it isn’t something difficult to do while parsing/typing code.