From 68296d04b7dbce95da86e69f0b17a84803f179db Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Tue, 16 Jun 2015 17:08:07 -0700 Subject: [PATCH] undef INFO_KEY macro after use --- object_store_exceptions.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/object_store_exceptions.hpp b/object_store_exceptions.hpp index 098fea30..ae6e7a27 100644 --- a/object_store_exceptions.hpp +++ b/object_store_exceptions.hpp @@ -23,8 +23,6 @@ #include #include -#define INFO_KEY(key) InfoKey InfoKey##key = "InfoKey" #key; - namespace realm { class Property; @@ -85,6 +83,7 @@ namespace realm { static FormatStrings s_custom_format_strings; public: + #define INFO_KEY(key) InfoKey InfoKey##key = "InfoKey" #key; INFO_KEY(OldVersion); INFO_KEY(NewVersion); INFO_KEY(ObjectType); @@ -94,6 +93,7 @@ namespace realm { INFO_KEY(PropertyObjectType); INFO_KEY(OldPropertyObjectType); INFO_KEY(PrimaryKey); + #undef INFO_KEY }; }