From d5a042384b5fc138a07c285fca966a0b89283fd8 Mon Sep 17 00:00:00 2001 From: Peter Griess Date: Wed, 29 Jan 2014 09:18:12 -0800 Subject: [PATCH] Change paramter name to FB_STRINGIZE Summary: - The fbobjc codebase defines this macro as well, and to the same thing. However, Clang complains on macro redefinitions if paramater names are different, even if the macros expand to the same thing. Normalize the Folly version to 'x', which is what fbobjc uses. Test Plan: - fbconfig -r folly && fbmake runtests - Builds in fbobjc Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D1149985 --- folly/Preprocessor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/Preprocessor.h b/folly/Preprocessor.h index 86b6a35f..c7e580d8 100644 --- a/folly/Preprocessor.h +++ b/folly/Preprocessor.h @@ -72,9 +72,9 @@ #endif /** - * Use FB_STRINGIZE(name) when you'd want to do what #name does inside + * Use FB_STRINGIZE(x) when you'd want to do what #x does inside * another macro expansion. */ -#define FB_STRINGIZE(name) #name +#define FB_STRINGIZE(x) #x #endif // FOLLY_PREPROCESSOR_ -- 2.34.1