diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-15 19:13:45 -0500 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-15 19:13:45 -0500 |
commit | e459d8604df600d3094fba269ecbcf22867cf171 (patch) | |
tree | e4e056781271a771622ce44a940c225cdba68cde /src/rpc | |
parent | Merge pull request #1581 (diff) | |
parent | macro to define core RPC version for avoiding future mistake (diff) | |
download | monero-e459d8604df600d3094fba269ecbcf22867cf171.tar.xz |
Merge pull request #1578
ce866d1c macro to define core RPC version for avoiding future mistake (kenshi84)
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/core_rpc_server_commands_defs.h | 3 |
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 { |