2 * SPDX-License-Identifier: MIT
4 * Copyright 2019 EfficiOS Inc.
7 #ifndef BABELTRACE_PLUGINS_CTF_COMMON_METADATA_PARSER_WRAP_H
8 #define BABELTRACE_PLUGINS_CTF_COMMON_METADATA_PARSER_WRAP_H
11 * Small wrapper around the bison-generated parser.h to conditionally define
12 * YYDEBUG (and therefore the yydebug declaration).
15 #include "logging/log.h"
17 #if BT_LOG_ENABLED_TRACE
19 # define YYFPRINTF(_stream, _fmt, args...) BT_LOGT(_fmt, ##args)
24 #define ALLOW_INCLUDE_PARSER_H
26 #undef ALLOW_INCLUDE_PARSER_H