Commit 8df3c4ab authored by Marcelo Juchem's avatar Marcelo Juchem Committed by Facebook Github Bot 9

Added FOLLY_IGNORE and FOLLY_SEMICOLON helper macros

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
parent 6086ec0c
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment