浏览代码

[lua] fix feature dependency for lua.Bit extern

Justin Donaldson 9 年之前
父节点
当前提交
9fb4b4ccfb
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      std/lua/Bit.hx

+ 1 - 2
std/lua/Bit.hx

@@ -36,7 +36,6 @@ extern class Bit {
 	public static function arshift(x:Float, places:Int) : Int;
 	public static function arshift(x:Float, places:Int) : Int;
 	public static function mod(numerator:Float, denominator:Float) : Int;
 	public static function mod(numerator:Float, denominator:Float) : Int;
 	public static function __init__() : Void {
 	public static function __init__() : Void {
-		//bit library fixes
-		haxe.macro.Compiler.includeFile("lua/_lua/_hx_bit.lua");
+		untyped _hx_bit = __define_feature__("use._bitop",_hx_bit);
 	}
 	}
 }
 }