diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-24 17:28:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-24 17:28:09 +0300 |
commit | 0c0b248bc88a606a37f204fcb6bc3a1b9c62464f (patch) | |
tree | c0a75ed395de06572590092aeceb9e72da1f1598 /include | |
parent | 8b91e6423697f9e76051b4b43c8463baee16ea94 (diff) |
SINT64_PARAM support moved into libjson
Diffstat (limited to 'include')
-rw-r--r-- | include/m_json.h | 1 | ||||
-rw-r--r-- | include/m_system.h | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/m_json.h b/include/m_json.h index 540fed3db0..7ab182d109 100644 --- a/include/m_json.h +++ b/include/m_json.h @@ -159,6 +159,7 @@ struct JSON_PARAM : public PARAM LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT64_PARAM ¶m);
+LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const SINT64_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const BOOL_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const CHAR_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const WCHAR_PARAM ¶m);
diff --git a/include/m_system.h b/include/m_system.h index a772ef6134..39477b4d84 100644 --- a/include/m_system.h +++ b/include/m_system.h @@ -531,6 +531,15 @@ struct INT64_PARAM : public PARAM }
};
+struct SINT64_PARAM : public PARAM
+{
+ int64_t iValue;
+ __forceinline SINT64_PARAM(const char *_name, int64_t _value) :
+ PARAM(_name), iValue(_value)
+ {
+ }
+};
+
struct CHAR_PARAM : public PARAM
{
const char *szValue;
|