| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2019 EfficiOS Inc. |
| 5 | */ |
| 6 | |
| 7 | #ifndef BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_PARSER_WRAP_HPP |
| 8 | #define BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_PARSER_WRAP_HPP |
| 9 | |
| 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-api.h" |
| 16 | |
| 17 | #if BT_LOG_ENABLED_TRACE |
| 18 | # define YYDEBUG 1 |
| 19 | #else |
| 20 | # define YYDEBUG 0 |
| 21 | #endif |
| 22 | |
| 23 | #define ALLOW_INCLUDE_PARSER_H |
| 24 | #include "plugins/ctf/common/src/metadata/tsdl/parser.hpp" |
| 25 | #undef ALLOW_INCLUDE_PARSER_H |
| 26 | |
| 27 | #endif /* BABELTRACE_PLUGINS_CTF_COMMON_SRC_METADATA_TSDL_PARSER_WRAP_HPP */ |