sink.text.pretty: abort on unknown field class type
[babeltrace.git] / src / plugins / ctf / common / metadata / parser-wrap.hpp
CommitLineData
9103e903 1/*
0235b0db 2 * SPDX-License-Identifier: MIT
9103e903 3 *
0235b0db 4 * Copyright 2019 EfficiOS Inc.
9103e903
SM
5 */
6
0235b0db
MJ
7#ifndef BABELTRACE_PLUGINS_CTF_COMMON_METADATA_PARSER_WRAP_H
8#define BABELTRACE_PLUGINS_CTF_COMMON_METADATA_PARSER_WRAP_H
9
9103e903
SM
10/*
11 * Small wrapper around the bison-generated parser.h to conditionally define
12 * YYDEBUG (and therefore the yydebug declaration).
13 */
14
15#include "logging/log.h"
16
17#if BT_LOG_ENABLED_TRACE
4164020e
SM
18# define YYDEBUG 1
19# define YYFPRINTF(_stream, _fmt, args...) BT_LOGT(_fmt, ##args)
9103e903 20#else
4164020e 21# define YYDEBUG 0
9103e903
SM
22#endif
23
24#define ALLOW_INCLUDE_PARSER_H
6244258c 25#include "plugins/ctf/common/metadata/parser.hpp"
9103e903
SM
26#undef ALLOW_INCLUDE_PARSER_H
27
28#endif
This page took 0.061174 seconds and 4 git commands to generate.