Project Alice
Loading...
Searching...
No Matches
debug.c
Go to the documentation of this file.
1/* ******************************************************************
2 * debug
3 * Part of FSE library
4 * Copyright (c) Meta Platforms, Inc. and affiliates.
5 *
6 * You can contact the author at :
7 * - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
8 *
9 * This source code is licensed under both the BSD-style license (found in the
10 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
11 * in the COPYING file in the root directory of this source tree).
12 * You may select, at your option, one of the above-listed licenses.
13****************************************************************** */
14
15
16/*
17 * This module only hosts one global variable
18 * which can be used to dynamically influence the verbosity of traces,
19 * such as DEBUGLOG and RAWLOG
20 */
21
22#include "debug.h"
23
24#if !defined(ZSTD_LINUX_KERNEL) || (DEBUGLEVEL>=2)
25/* We only use this when DEBUGLEVEL>=2, but we get -Werror=pedantic errors if a
26 * translation unit is empty. So remove this from Linux kernel builds, but
27 * otherwise just leave it in.
28 */
30#endif
int g_debuglevel
Definition: debug.c:29
#define DEBUGLEVEL
Definition: debug.h:50