Browse Source

Use __hxcpp_println (#5139)

hxcpp has a println function, so there is no need to double call "print"
Carlos Madrazo 9 năm trước cách đây
mục cha
commit
0e63c95025
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      std/cpp/_std/Sys.hx

+ 1 - 2
std/cpp/_std/Sys.hx

@@ -28,8 +28,7 @@ import cpp.NativeSys;
 	}
 
 	public static function println( v : Dynamic ) : Void {
-		print(v);
-		print("\n");
+		untyped __global__.__hxcpp_println(v);
 	}
 
    @:access(sys.io.FileInput)