I know, I can do something like
public static function getTarget():String {
to determine the target language in haxe (see http://old.haxe.org/doc/snip/gettarget ). However, whenever a new target programming language is added (normally, this is not so often) the community - I will need to add another elseif sentence in order to "support / discover" this language ...
So, I was wondering if there is some kind of predefined macro / function that returns the target language as a string:
trace("This is a " + getTargetLanguage() + " program!");
quant source share