From d666b6e59b5cd34a02dbb060396719c0b40302aa Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Tue, 6 Oct 2015 12:52:03 +0200 Subject: [PATCH] demux: adaptative: add debug helper --- modules/demux/Makefile.am | 1 + modules/demux/adaptative/tools/Debug.hpp | 32 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 modules/demux/adaptative/tools/Debug.hpp diff --git a/modules/demux/Makefile.am b/modules/demux/Makefile.am index bfd79d9682..4b94a24066 100644 --- a/modules/demux/Makefile.am +++ b/modules/demux/Makefile.am @@ -322,6 +322,7 @@ libadaptative_plugin_la_SOURCES = \ demux/adaptative/Streams.hpp \ demux/adaptative/StreamsType.hpp \ demux/adaptative/Time.hpp \ + demux/adaptative/tools/Debug.hpp \ demux/adaptative/tools/Helper.cpp \ demux/adaptative/tools/Helper.h \ demux/adaptative/tools/Properties.hpp \ diff --git a/modules/demux/adaptative/tools/Debug.hpp b/modules/demux/adaptative/tools/Debug.hpp new file mode 100644 index 0000000000..81eba8d3c1 --- /dev/null +++ b/modules/demux/adaptative/tools/Debug.hpp @@ -0,0 +1,32 @@ +/* + * Debug.hpp + ***************************************************************************** + * Copyright © 2015 VideoLAN and VLC Authors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ +#ifndef DEBUG_HPP +#define DEBUG_HPP + +//#define ADAPTATIVE_ADVANCED_DEBUG 0 + +#ifdef ADAPTATIVE_ADVANCED_DEBUG + #define AdvDebug(code) code +#else + #define AdvDebug(code) +#endif + +#endif // DEBUG_HPP + -- GitLab