projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6086ec0
)
Added FOLLY_IGNORE and FOLLY_SEMICOLON helper macros
author
Marcelo Juchem
<marcelo@fb.com>
Wed, 20 Apr 2016 21:23:31 +0000
(14:23 -0700)
committer
Facebook Github Bot 9
<facebook-github-bot-9-bot@fb.com>
Wed, 20 Apr 2016 21:35:23 +0000
(14:35 -0700)
Summary: these macros are generally useful for other higher-order macros
Reviewed By: yfeldblum
Differential Revision:
D3194777
fb-gh-sync-id:
667fc51c681786ad422309ee463881dc22c972f7
fbshipit-source-id:
667fc51c681786ad422309ee463881dc22c972f7
folly/Preprocessor.h
patch
|
blob
|
history
diff --git
a/folly/Preprocessor.h
b/folly/Preprocessor.h
index 9d098c3de4af43cbc64497dd0bc176f9be092508..393016bdc8c5a2bd81abd4ab88cec15744206f25 100644
(file)
--- a/
folly/Preprocessor.h
+++ b/
folly/Preprocessor.h
@@
-72,6
+72,16
@@
*/
#define FB_SINGLE_ARG(...) __VA_ARGS__
+/**
+ * Helper macro that just ignores its parameters.
+ */
+#define FOLLY_IGNORE(...)
+
+/**
+ * Helper macro that just ignores its parameters and inserts a semicolon.
+ */
+#define FOLLY_SEMICOLON(...) ;
+
/**
* FB_ANONYMOUS_VARIABLE(str) introduces an identifier starting with
* str and ending with a number that varies with the line.