Change paramter name to FB_STRINGIZE
authorPeter Griess <pgriess@fb.com>
Wed, 29 Jan 2014 17:18:12 +0000 (09:18 -0800)
committerSara Golemon <sgolemon@fb.com>
Thu, 6 Feb 2014 19:50:13 +0000 (11:50 -0800)
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

index 86b6a35f9b954376396b7cfb567bdb2aac079377..c7e580d81d4d947405caec69ce8c95f833d9b027 100644 (file)
@@ -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_