BuiltIn.hx 290 B

123456789101112
  1. import haxe.macro.Context;
  2. function main() {
  3. // test that built in defines can be accessed by macros
  4. // either with a dash or underscore
  5. if (!Context.defined("haxe-ver"))
  6. throw "`haxe-ver` flag is missing";
  7. if (!Context.defined("haxe_ver"))
  8. throw "`haxe_ver` flag is missing";
  9. }