Forráskód Böngészése

Add fromStar to Pointer and ConstPointer

Aidan Lee 6 éve
szülő
commit
9e47699795
2 módosított fájl, 5 hozzáadás és 0 törlés
  1. 2 0
      std/cpp/ConstPointer.hx
  2. 3 0
      std/cpp/Pointer.hx

+ 2 - 0
std/cpp/ConstPointer.hx

@@ -51,6 +51,8 @@ extern class ConstPointer<T>
 
    public static function fromRaw<T>(ptr:RawConstPointer<T>) : ConstPointer<T>;
 
+   @:native("::cpp::Pointer_obj::fromRaw")
+   public static function fromStar<T>(star:Star<T>) : ConstPointer<T>;
 
    public static function fromPointer<T>(inNativePointer:Dynamic) : ConstPointer<T>;
 

+ 3 - 0
std/cpp/Pointer.hx

@@ -36,6 +36,9 @@ extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T>
 
    public static function fromRaw<T>(ptr:RawPointer<T>) : Pointer<T>;
 
+   @:native("::cpp::Pointer_obj::fromRaw")
+   public static function fromStar<T>(star:Star<T>) : Pointer<T>;
+
    @:native("::cpp::Pointer_obj::fromHandle")
    static function nativeFromHandle<T>(inHandle:Dynamic,?inKind:String):AutoCast;
    inline public static function fromHandle<T>(inHandle:Dynamic,?inKind:String) : Pointer<T>