• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef BSSL_FILLINS_LOG_H_
6 #define BSSL_FILLINS_LOG_H_
7 
8 #include <iostream>
9 
10 // This header defines the logging macros, inherited from chrome.
11 
12 // This file is not used in chrome, so check here to make sure we are
13 // only compiling inside boringssl.
14 #if !defined(_BORINGSSL_LIBPKI_)
15 #error "_BORINGSSL_LIBPKI_ is not defined when compiling BoringSSL libpki"
16 #endif
17 
18 #if defined(_BORINGSSL_LIBPKI_VERBOSE_)
19 #define DVLOG(l) std::cerr
20 #define LOG(l) std::cerr
21 #else
22 #define DVLOG(l) 0 && std::cerr
23 #define LOG(l) 0 && std::cerr
24 #endif  // _BORINGSSL_LIBPKI_VERBOSE_
25 
26 #endif  // BSSL_FILLINS_LOG_H_
27