mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
@@ -29,6 +29,7 @@ template <> void GetDefaultMember::handle(const Color& v) { value = to_sc
|
|||||||
template <> void GetDefaultMember::handle(const wxDateTime& v) { value = to_script(v); }
|
template <> void GetDefaultMember::handle(const wxDateTime& v) { value = to_script(v); }
|
||||||
void GetDefaultMember::handle(const ScriptValueP& v) { value = v; }
|
void GetDefaultMember::handle(const ScriptValueP& v) { value = v; }
|
||||||
void GetDefaultMember::handle(const ScriptP& v) { value = v; }
|
void GetDefaultMember::handle(const ScriptP& v) { value = v; }
|
||||||
|
template <> void GetDefaultMember::handle(const unsigned long& v) { value = to_script((int)v); }
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : GetMember
|
// ----------------------------------------------------------------------------- : GetMember
|
||||||
|
|
||||||
|
|||||||
@@ -106,3 +106,11 @@ typedef unsigned int UInt;
|
|||||||
#define assert(exp) (void)( (exp) || (msvc_assert(nullptr, _CRT_WIDE(#exp), _CRT_WIDE(__FILE__), __LINE__), 0) )
|
#define assert(exp) (void)( (exp) || (msvc_assert(nullptr, _CRT_WIDE(#exp), _CRT_WIDE(__FILE__), __LINE__), 0) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxVERSION_NUMBER < 3100
|
||||||
|
// wx <= 3.1 doesn't include a hash implementation for wxString
|
||||||
|
template <> struct std::hash<wxString> {
|
||||||
|
size_t operator()(const wxString& k) const {
|
||||||
|
return hash<wstring>()(k.ToStdWstring());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user