• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_FEATURES_RUNTIME_CHECKS_H_
6 #define CEF_LIBCEF_FEATURES_RUNTIME_CHECKS_H_
7 #pragma once
8 
9 #include "base/logging.h"
10 #include "cef/libcef/features/runtime.h"
11 
12 #define REQUIRE_ALLOY_RUNTIME() \
13   CHECK(cef::IsAlloyRuntimeEnabled()) << "Alloy runtime is required"
14 
15 #define REQUIRE_CHROME_RUNTIME() \
16   CHECK(cef::IsChromeRuntimeEnabled()) << "Chrome runtime is required"
17 
18 #endif  // CEF_LIBCEF_FEATURES_RUNTIME_CHECKS_H_
19