diff options
author | kenshi84 <kenshi84@protonmail.ch> | 2017-01-15 16:54:13 +0900 |
---|---|---|
committer | kenshi84 <kenshi84@protonmail.ch> | 2017-01-16 07:55:43 +0900 |
commit | ce866d1cc6423b924e3c6e094c1a45ca4e83aae7 (patch) | |
tree | 510f15c4dc5f533a015179545c7ec10e5934914d /src | |
parent | Merge pull request #1579 (diff) | |
download | monero-ce866d1cc6423b924e3c6e094c1a45ca4e83aae7.tar.xz |
macro to define core RPC version for avoiding future mistake
Diffstat (limited to 'src')
-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 { |