X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclientiface.h;h=89e0f41b90dd407199989c11a4d12fe4aa579b2e;hb=1838a3fd696782b1733a435bbb25accf3e40d1f3;hp=752e2bb8a466329f18f9e2ec55793c4674c13767;hpb=118e2ae865bd7a0020586ef72d05bf14d66f4eae;p=minetest.git diff --git a/src/clientiface.h b/src/clientiface.h index 752e2bb8a..89e0f41b9 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -141,7 +141,7 @@ namespace con { class Connection; } -#define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0])) +#define CI_ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0])) enum ClientState { @@ -433,7 +433,7 @@ class ClientInterface { { assert(m_env == 0); m_env = env; } static std::string state2Name(ClientState state) { - assert((int) state < ARRAYSIZE(statenames)); + assert((int) state < CI_ARRAYSIZE(statenames)); return statenames[state]; }