/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "experiments.h" #include namespace facebook { namespace yoga { namespace internal { namespace detail { extern std::bitset enabledExperiments; } // namespace detail inline bool isEnabled(Experiment experiment) { return detail::enabledExperiments.test(static_cast(experiment)); } inline void disableAllExperiments() { detail::enabledExperiments = 0; } } // namespace internal } // namespace yoga } // namespace facebook