summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-24 17:28:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-24 17:28:09 +0300
commit0c0b248bc88a606a37f204fcb6bc3a1b9c62464f (patch)
treec0a75ed395de06572590092aeceb9e72da1f1598 /include
parent8b91e6423697f9e76051b4b43c8463baee16ea94 (diff)
SINT64_PARAM support moved into libjson
Diffstat (limited to 'include')
-rw-r--r--include/m_json.h1
-rw-r--r--include/m_system.h9
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 &param);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT64_PARAM &param);
+LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const SINT64_PARAM &param);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const BOOL_PARAM &param);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const CHAR_PARAM &param);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const WCHAR_PARAM &param);
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;