12.12.3 Version flags

The Lua target enables the following define flags for the Haxe complier:

  • -D lua-ver Enable special features for a specific Lua version. Currently, this flag will enable extern methods that are specific to certain versions (e.g. table.pack in Lua > 5.2).
  • -D luajit Enable special features for LuaJIT. Currently this flag will enable the jit and ffi module namespaces.
  • -D lua-vanilla Generate code lacking some functionality (e.g. UTF-8) but with no additional library dependencies.