aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-15 19:13:45 -0500
committerRiccardo Spagni <ric@spagni.net>2017-01-15 19:13:45 -0500
commite459d8604df600d3094fba269ecbcf22867cf171 (patch)
treee4e056781271a771622ce44a940c225cdba68cde /src
parentMerge pull request #1581 (diff)
parentmacro to define core RPC version for avoiding future mistake (diff)
downloadmonero-e459d8604df600d3094fba269ecbcf22867cf171.tar.xz
Merge pull request #1578
ce866d1c macro to define core RPC version for avoiding future mistake (kenshi84)
Diffstat (limited to 'src')
-rw-r--r--src/rpc/core_rpc_server_commands_defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h
index c1dc9ed6c..2530bc06d 100644
--- a/src/rpc/core_rpc_server_commands_defs.h
+++ b/src/rpc/core_rpc_server_commands_defs.h
@@ -50,7 +50,8 @@ namespace cryptonote
// Don't go over 32767 for any of these
#define CORE_RPC_VERSION_MAJOR 1
#define CORE_RPC_VERSION_MINOR 5
-#define CORE_RPC_VERSION (((CORE_RPC_VERSION_MAJOR)<<16)|(CORE_RPC_VERSION_MINOR))
+#define MAKE_CORE_RPC_VERSION(major,minor) (((major)<<16)|(minor))
+#define CORE_RPC_VERSION MAKE_CORE_RPC_VERSION(CORE_RPC_VERSION_MAJOR, CORE_RPC_VERSION_MINOR)
struct COMMAND_RPC_GET_HEIGHT
{