File tree 4 files changed +6
-0
lines changed
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
30
30
Dynamic (float inVal);
31
31
Dynamic (cpp::Int64 inVal);
32
32
Dynamic (cpp::UInt64 inVal);
33
+ Dynamic (unsigned long inVal);
33
34
Dynamic (hx::Object *inObj) : super(inObj) { }
34
35
Dynamic (const String &inString);
35
36
Dynamic (const null &inNull) : super(0 ) { }
@@ -74,6 +75,7 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
74
75
inline operator bool () const { return mPtr && mPtr ->__ToInt (); }
75
76
inline operator cpp::Int64 () const { return mPtr ? mPtr ->__ToInt64 () : 0 ; }
76
77
inline operator cpp::UInt64 () const { return mPtr ? mPtr ->__ToInt64 () : 0 ; }
78
+ inline operator unsigned long () const { return mPtr ? mPtr ->__ToInt64 () : 0 ; }
77
79
78
80
// Conversion to generic pointer requires you to tag the class with a typedef
79
81
template <typename T>
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ namespace cpp
70
70
71
71
inline Variant (cpp::Int64 inValue) : type(typeInt64), valInt64(inValue) { }
72
72
inline Variant (cpp::UInt64 inValue) : type(typeInt64), valInt64(inValue) { }
73
+ inline Variant (unsigned long inValue) : type(typeInt64), valInt64(inValue) { }
73
74
inline Variant (int inValue) : type(typeInt), valInt(inValue) { }
74
75
inline Variant (cpp::UInt32 inValue) : type(typeInt), valInt(inValue) { }
75
76
inline Variant (cpp::Int16 inValue) : type(typeInt), valInt(inValue) { }
@@ -111,6 +112,7 @@ namespace cpp
111
112
inline operator signed char () const { return asInt (); }
112
113
inline operator cpp::Int64 () const { return asInt64 (); }
113
114
inline operator cpp::UInt64 () const { return asInt64 (); }
115
+ inline operator unsigned long () const { return asInt64 (); }
114
116
inline bool operator !() const { return !asInt (); }
115
117
116
118
inline int Compare (hx::Object *inRHS) const ;
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES String
95
95
String (const float &inRHS);
96
96
String (const cpp::Int64 &inRHS);
97
97
String (const cpp::UInt64 &inRHS);
98
+ String (const unsigned long &inRHS);
98
99
explicit String (const bool &inRHS);
99
100
inline String (const null &inRHS) : __s (0 ), length (0 ) { }
100
101
String (hx::Null< ::String > inRHS) : __s (inRHS.value .__s ), length (inRHS.value .length ) { }
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ class null
92
92
operator signed char () { return 0 ; }
93
93
operator short () { return 0 ; }
94
94
operator unsigned short () { return 0 ; }
95
+ operator unsigned long () { return 0 ; }
95
96
operator cpp::UInt64 () { return 0 ; }
96
97
operator cpp::Int64 () { return 0 ; }
97
98
template <typename T>
You can’t perform that action at this time.
0 commit comments