Properly forward-declare zeek::plugin::plugin in DebugLogger

This commit is contained in:
Tim Wojtulewicz 2020-07-24 12:55:54 -07:00
parent 3e6ba198db
commit 7a4023a17f

View file

@ -5,6 +5,8 @@
#ifdef DEBUG #ifdef DEBUG
#include "zeek-config.h"
#include <stdio.h> #include <stdio.h>
#include <string> #include <string>
#include <set> #include <set>
@ -20,8 +22,9 @@
#define PLUGIN_DBG_LOG(plugin, args...) zeek::detail::debug_logger.Log(plugin, args) #define PLUGIN_DBG_LOG(plugin, args...) zeek::detail::debug_logger.Log(plugin, args)
ZEEK_FORWARD_DECLARE_NAMESPACED(Plugin, zeek, plugin);
namespace zeek { namespace zeek {
namespace plugin { class Plugin; }
// To add a new debugging stream, add a constant here as well as // To add a new debugging stream, add a constant here as well as
// an entry to DebugLogger::streams in DebugLogger.cc. // an entry to DebugLogger::streams in DebugLogger.cc.