#ifndef MIGRAPH_GUARD_RTGLIB_ENV_HPP #define MIGRAPH_GUARD_RTGLIB_ENV_HPP #include #include namespace migraph { // Declare a cached environment variable #define MIGRAPH_DECLARE_ENV_VAR(x) \ struct x \ { \ static const char* value() { return #x; } \ }; // NOLINT bool enabled(const char* name); bool disabled(const char* name); std::vector env(const char* name); template bool enabled(T) { static const bool result = enabled(T::value()); return result; } template bool disabled(T) { static const bool result = disabled(T::value()); return result; } } // namespace migraph #endif