浏览代码

[cs] use haxe instead of @:functionCode for Reflect.compare

Dan Korostelev 11 年之前
父节点
当前提交
c922ef88bd
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      std/cs/_std/Reflect.hx

+ 1 - 4
std/cs/_std/Reflect.hx

@@ -140,12 +140,9 @@ import cs.internal.Function;
 		return false;
 	}
 
-	@:functionCode('
-		return haxe.lang.Runtime.compare(a, b);
-	')
 	public static function compare<T>( a : T, b : T ) : Int
 	{
-		return 0;
+		return cs.internal.Runtime.compare(a, b);
 	}
 
 	@:functionCode('