@@ -165,10 +165,10 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
165165
166166
167167 #define DYNAMIC_COMPARE_OP ( op ) \
168- bool operator op (const String &inRHS) const { return mPtr && ((String)(*this ) op inRHS); } \
168+ bool operator op (const :: String &inRHS) const { return mPtr && ((:: String)(*this ) op inRHS); } \
169169 bool operator op (double inRHS) const { return IsNumeric () && ((double )(*this ) op inRHS); } \
170- bool operator op (cpp::Int64 inRHS) const { return IsNumeric () && ((cpp::Int64)(*this ) op inRHS); } \
171- bool operator op (cpp::UInt64 inRHS) const { return IsNumeric () && ((cpp::Int64)(*this ) op inRHS); } \
170+ bool operator op (:: cpp::Int64 inRHS) const { return IsNumeric () && ((:: cpp::Int64)(*this ) op inRHS); } \
171+ bool operator op (:: cpp::UInt64 inRHS) const { return IsNumeric () && ((:: cpp::Int64)(*this ) op inRHS); } \
172172 bool operator op (float inRHS) const { return IsNumeric () && ((double )(*this ) op inRHS); } \
173173 bool operator op (int inRHS) const { return IsNumeric () && ((double )(*this ) op (double )inRHS); } \
174174 bool operator op (unsigned int inRHS) const { return IsNumeric () && ((double )(*this ) op (double )inRHS); } \
@@ -198,8 +198,8 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
198198
199199
200200 #define DYNAMIC_COMPARE_OP_ALL ( op ) \
201- bool operator op (const Dynamic &inRHS) const { return mPtr && (Compare (inRHS) op 0 ); } \
202- bool operator op (const cpp::Variant &inRHS) const { return *this op Dynamic (inRHS); } \
201+ bool operator op (const :: Dynamic &inRHS) const { return mPtr && (Compare (inRHS) op 0 ); } \
202+ bool operator op (const :: cpp::Variant &inRHS) const { return *this op :: Dynamic (inRHS); } \
203203 DYNAMIC_COMPARE_OP (op)
204204
205205
@@ -259,36 +259,36 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
259259 double operator / (const int &inRHS) const { return (double )(*this ) / (double )inRHS; }
260260
261261 #define DYNAMIC_ARITH ( op ) \
262- Dynamic operator op (const cpp::Variant &inRHS) const \
262+ :: Dynamic operator op (const :: cpp::Variant &inRHS) const \
263263 { return mPtr ->__GetType ()==vtInt && inRHS.isInt () ? \
264- Dynamic ((int )(*this ) op (int )inRHS) : \
265- Dynamic ( (double )(*this ) op (double )inRHS); } \
266- Dynamic operator op (const Dynamic &inRHS) const \
264+ :: Dynamic ((int )(*this ) op (int )inRHS) : \
265+ :: Dynamic( (double )(*this ) op (double )inRHS); } \
266+ :: Dynamic operator op (const :: Dynamic &inRHS) const \
267267 { return mPtr ->__GetType ()==vtInt && inRHS.mPtr ->__GetType ()==vtInt ? \
268- Dynamic ((int )(*this ) op (int )inRHS) : \
269- Dynamic ( (double )(*this ) op (double )inRHS); } \
268+ :: Dynamic ((int )(*this ) op (int )inRHS) : \
269+ :: Dynamic( (double )(*this ) op (double )inRHS); } \
270270 double operator op (const double &inRHS) const { return (double )(*this ) op (double )inRHS; } \
271271 double operator op (const float &inRHS) const { return (double )(*this ) op (double )inRHS; } \
272- Dynamic operator op (const int &inRHS) const \
273- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
274- Dynamic operator op (const unsigned int &inRHS) const \
275- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
276- Dynamic operator op (const short &inRHS) const \
277- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
278- Dynamic operator op (const unsigned short &inRHS) const \
279- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
280- Dynamic operator op (const signed char &inRHS) const \
281- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
282- Dynamic operator op (const unsigned char &inRHS) const \
283- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
284- Dynamic operator op (const char16_t &inRHS) const \
285- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
286- Dynamic operator op (const char32_t &inRHS) const \
287- { return mPtr ->__GetType ()==vtInt ? Dynamic ((int )(*this ) op inRHS) : Dynamic ((double )(*this ) op inRHS); } \
288- Dynamic operator op (const cpp::Int64 &inRHS) const \
289- { return Dynamic ((double )(*this ) op inRHS); } \
290- Dynamic operator op (const cpp::UInt64 &inRHS) const \
291- { return Dynamic ((double )(*this ) op inRHS); } \
272+ :: Dynamic operator op (const int &inRHS) const \
273+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
274+ :: Dynamic operator op (const unsigned int &inRHS) const \
275+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
276+ :: Dynamic operator op (const short &inRHS) const \
277+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
278+ :: Dynamic operator op (const unsigned short &inRHS) const \
279+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
280+ :: Dynamic operator op (const signed char &inRHS) const \
281+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
282+ :: Dynamic operator op (const unsigned char &inRHS) const \
283+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
284+ :: Dynamic operator op (const char16_t &inRHS) const \
285+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
286+ :: Dynamic operator op (const char32_t &inRHS) const \
287+ { return mPtr ->__GetType ()==vtInt ? :: Dynamic ((int )(*this ) op inRHS) : :: Dynamic ((double )(*this ) op inRHS); } \
288+ :: Dynamic operator op (const :: cpp::Int64 &inRHS) const \
289+ { return :: Dynamic ((double )(*this ) op inRHS); } \
290+ :: Dynamic operator op (const :: cpp::UInt64 &inRHS) const \
291+ { return :: Dynamic ((double )(*this ) op inRHS); } \
292292
293293 DYNAMIC_ARITH ( - )
294294 DYNAMIC_ARITH ( * )
@@ -425,8 +425,8 @@ inline bool Dynamic::IsClass< ::cpp::Int64>() { return mPtr && mPtr->__GetClass(
425425inline String Dynamic::operator +(const String &s) const { return Cast<String>() + s; }
426426
427427#define HX_DYNAMIC_OP_ISEQ (T ) \
428- inline bool operator == (const T &inLHS,const Dynamic &inRHS) { return inRHS==inLHS; } \
429- inline bool operator != (const T &inLHS,const Dynamic &inRHS) { return inRHS!=inLHS; }
428+ inline bool operator == (const T &inLHS,const :: Dynamic &inRHS) { return inRHS==inLHS; } \
429+ inline bool operator != (const T &inLHS,const :: Dynamic &inRHS) { return inRHS!=inLHS; }
430430
431431HX_DYNAMIC_OP_ISEQ (String)
432432HX_DYNAMIC_OP_ISEQ(double )
@@ -466,18 +466,18 @@ COMPARE_DYNAMIC_OP( > )
466466
467467
468468#define ARITH_DYNAMIC ( op ) \
469- inline double operator op (const cpp::Int64 &inLHS,const Dynamic &inRHS) { return inLHS op (cpp::Int64)inRHS;} \
470- inline double operator op (const cpp::UInt64 &inLHS,const Dynamic &inRHS) { return inLHS op (cpp::UInt64)inRHS;} \
471- inline double operator op (const double &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS;} \
472- inline double operator op (const float &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS;} \
473- inline double operator op (const int &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
474- inline double operator op (const unsigned int &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
475- inline double operator op (const short &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
476- inline double operator op (const unsigned short &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
477- inline double operator op (const signed char &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
478- inline double operator op (const unsigned char &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
479- inline double operator op (const char16_t &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
480- inline double operator op (const char32_t &inLHS,const Dynamic &inRHS) { return inLHS op (double )inRHS; } \
469+ inline double operator op (const :: cpp::Int64 &inLHS,const :: Dynamic &inRHS) { return inLHS op (:: cpp::Int64)inRHS;} \
470+ inline double operator op (const :: cpp::UInt64 &inLHS,const :: Dynamic &inRHS) { return inLHS op (:: cpp::UInt64)inRHS;} \
471+ inline double operator op (const double &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS;} \
472+ inline double operator op (const float &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS;} \
473+ inline double operator op (const int &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
474+ inline double operator op (const unsigned int &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
475+ inline double operator op (const short &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
476+ inline double operator op (const unsigned short &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
477+ inline double operator op (const signed char &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
478+ inline double operator op (const unsigned char &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
479+ inline double operator op (const char16_t &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
480+ inline double operator op (const char32_t &inLHS,const :: Dynamic &inRHS) { return inLHS op (double )inRHS; } \
481481
482482ARITH_DYNAMIC ( - )
483483ARITH_DYNAMIC( + )
0 commit comments