I know, I can do something like
public static function getTarget():String {
#if flash
return "Flash";
#elseif java
return "Java";
//... some more elseif clauses ...
#end
}
in order to detect the target language in haxe (see http://old.haxe.org/doc/snip/gettarget). However whenever a new target programming language gets added (ok, this is not that frequent) by the community - I would need to add another elseif-clause in order to "support/detect" that language ...
So I was wondering, if there is some kind of predefined macro/function, that returns the target language as string:
trace("This is a " + getTargetLanguage() + " program!");