|
@@ -28,7 +28,6 @@ import haxe.Int64Helper;
|
|
|
@:include("cpp/Int64.h")
|
|
|
@:native("cpp::Int64Struct")
|
|
|
private extern class ___Int64 {
|
|
|
- function get():cpp.Int64;
|
|
|
|
|
|
@:native("_hx_int64_make")
|
|
|
static function make(high:Int32, low:Int32):__Int64;
|
|
@@ -145,6 +144,16 @@ abstract Int64(__Int64) from __Int64 to __Int64 {
|
|
|
return __Int64.make(high, low);
|
|
|
}
|
|
|
|
|
|
+ @:to
|
|
|
+ #if !cppia inline #end function toInt64():cpp.Int64 {
|
|
|
+ return cast this;
|
|
|
+ }
|
|
|
+
|
|
|
+ @:from
|
|
|
+ static #if !cppia inline #end function ofInt64(x:cpp.Int64):Int64 {
|
|
|
+ return cast x;
|
|
|
+ }
|
|
|
+
|
|
|
@:from
|
|
|
public static #if !cppia inline #end function ofInt(x:Int):Int64 {
|
|
|
return __Int64.ofInt(x);
|