diff options
Diffstat (limited to 'src/mongo/util/fail_point_service.h')
-rw-r--r-- | src/mongo/util/fail_point_service.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mongo/util/fail_point_service.h b/src/mongo/util/fail_point_service.h index 754bb759fb0..d06960d0aac 100644 --- a/src/mongo/util/fail_point_service.h +++ b/src/mongo/util/fail_point_service.h @@ -33,26 +33,26 @@ namespace mongo { - /** - * @return the global fail point registry. - */ - FailPointRegistry* getGlobalFailPointRegistry(); - - /** - * Convenience macro for declaring a fail point. Must be used in global scope and never in a - * block with limited scope (ie, inside functions, loops, etc.). - * - * NOTE: Never use in header files, only sources. - */ - #define MONGO_FP_DECLARE(fp) FailPoint fp; \ - MONGO_INITIALIZER_GENERAL(fp, ("FailPointRegistry"), ("AllFailPointsRegistered")) \ - (::mongo::InitializerContext* context) { \ - return getGlobalFailPointRegistry()->addFailPoint(#fp, &fp); \ - } +/** + * @return the global fail point registry. + */ +FailPointRegistry* getGlobalFailPointRegistry(); - /** - * Convenience macro for defining a fail point in a header scope. - */ - #define MONGO_FP_FORWARD_DECLARE(fp) extern FailPoint fp; +/** + * Convenience macro for declaring a fail point. Must be used in global scope and never in a + * block with limited scope (ie, inside functions, loops, etc.). + * + * NOTE: Never use in header files, only sources. + */ +#define MONGO_FP_DECLARE(fp) \ + FailPoint fp; \ + MONGO_INITIALIZER_GENERAL(fp, ("FailPointRegistry"), ("AllFailPointsRegistered")) \ + (::mongo::InitializerContext * context) { \ + return getGlobalFailPointRegistry()->addFailPoint(#fp, &fp); \ + } +/** + * Convenience macro for defining a fail point in a header scope. + */ +#define MONGO_FP_FORWARD_DECLARE(fp) extern FailPoint fp; } |