Skip to content

Commit

Permalink
Change paramter name to FB_STRINGIZE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Peter Griess authored and sgolemon committed Feb 6, 2014
1 parent d6ed81c commit d5a0423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions folly/Preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_

0 comments on commit d5a0423

Please sign in to comment.