forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -22,7 +22,21 @@
|
||||
|
||||
package cpp;
|
||||
|
||||
@:coreType @:notNull @:runtimeValue abstract Int64 from Int to Int {
|
||||
@:coreType @:notNull @:runtimeValue abstract Int64 from Int {
|
||||
|
||||
/**
|
||||
Destructively cast to Int
|
||||
**/
|
||||
public inline function toInt():Int {
|
||||
return cast this;
|
||||
}
|
||||
|
||||
@:to
|
||||
@:deprecated("Implicit cast from Int64 to Int (32 bits) is deprecated. Use .toInt() or explicitly cast instead.")
|
||||
inline function implicitToInt(): Int {
|
||||
return toInt();
|
||||
}
|
||||
|
||||
@:to
|
||||
#if !cppia inline #end function toInt64():haxe.Int64 {
|
||||
return cast this;
|
||||
|
||||
Reference in New Issue
Block a user