From a061e4eedca694fd4cde114d7d99385a45548c64 Mon Sep 17 00:00:00 2001 From: Neargye Date: Sat, 12 May 2018 01:33:42 +0500 Subject: [PATCH] update comment --- include/nameof.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 3caac1f..932d959 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -52,13 +52,13 @@ inline constexpr const char* Nameof(const char* name, const ::std::size_t length } // namespace nameof #if defined(__GNUC__) || defined(__clang__) -// Used to obtain the string name of a variable, type, function, macros and etc. +// Used to obtain the string name of a variable, type, member, function, macros. # define NAMEOF(name) ::nameof::Nameof(#name, sizeof(#name) / sizeof(char) - 1 + (0 * sizeof(void(*)(__typeof__(name))))) -// Used to obtain the string full name of a variable, type, function, macros and etc. +// Used to obtain the string full name of a variable, type, member, function, macros. # define NAMEOF_FULL(name) ::nameof::Nameof(#name, (0 * sizeof(void(*)(__typeof__(name))))) #elif defined(_MSC_VER) -// Used to obtain the string name of a variable, type, function, macros and etc. +// Used to obtain the string name of a variable, type, member, function, macros. # define NAMEOF(name) ::nameof::Nameof(#name, sizeof(#name) / sizeof(char) - 1 + (0 * sizeof(typeid(name)))) -// Used to obtain the string full name of a variable, type, function, macros and etc. +// Used to obtain the string full name of a variable, type, member, function, macros. # define NAMEOF_FULL(name) ::nameof::Nameof(#name, (0 * sizeof(typeid(name)))) #endif