Просмотр исходного кода

Added decBy and sub externs to cpp.Pointer and cpp.ConstPointer (#8499)

Aidan Lee 6 лет назад
Родитель
Сommit
cfa388dda2
2 измененных файлов с 5 добавлено и 1 удалено
  1. 3 1
      std/cpp/ConstPointer.hx
  2. 2 0
      std/cpp/Pointer.hx

+ 3 - 1
std/cpp/ConstPointer.hx

@@ -63,7 +63,9 @@ extern class ConstPointer<T> {
 
 	public function inc():ConstPointer<T>;
 	public function dec():ConstPointer<T>;
-	public function postIncVal():Reference<T>;
 	public function incBy(inT:Int):ConstPointer<T>;
+	public function decBy(inT:Int):ConstPointer<T>;
 	public function add(inT:Int):ConstPointer<T>;
+	public function sub(inT:Int):ConstPointer<T>;
+	public function postIncVal():Reference<T>;
 }

+ 2 - 0
std/cpp/Pointer.hx

@@ -75,7 +75,9 @@ extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T> {
 	override public function inc():Pointer<T>;
 	override public function dec():Pointer<T>;
 	override public function incBy(inT:Int):Pointer<T>;
+	override public function decBy(inT:Int):Pointer<T>;
 	override public function add(inT:Int):Pointer<T>;
+	override public function sub(inT:Int):Pointer<T>;
 
 	public function postIncRef():Reference<T>;