add last backwards-compatible version
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(FOOBAR2000_DESKTOP) || PFC_DEBUG
|
||||
// RATIONALE
|
||||
// Mobile target doesn't really care about event logging, logger interface exists there only for source compat
|
||||
// We can use macros to suppress all PFC_string_formatter bloat for targets that do not care about any of this
|
||||
#define FB2K_HAVE_EVENT_LOGGER
|
||||
#endif
|
||||
|
||||
class NOVTABLE event_logger : public service_base {
|
||||
FB2K_MAKE_SERVICE_INTERFACE(event_logger, service_base);
|
||||
public:
|
||||
@@ -35,16 +26,8 @@ public:
|
||||
static event_logger_recorder::ptr create();
|
||||
};
|
||||
|
||||
#ifdef FB2K_HAVE_EVENT_LOGGER
|
||||
|
||||
#define FB2K_LOG_STATUS(X,Y) (X)->log_status(Y)
|
||||
#define FB2K_LOG_WARNING(X,Y) (X)->log_warning(Y)
|
||||
#define FB2K_LOG_ERROR(X,Y) (X)->log_error(Y)
|
||||
|
||||
#else
|
||||
|
||||
#define FB2K_LOG_STATUS(X,Y) ((void)0)
|
||||
#define FB2K_LOG_WARNING(X,Y) ((void)0)
|
||||
#define FB2K_LOG_ERROR(X,Y) ((void)0)
|
||||
|
||||
#endif
|
||||
#define FB2K_HAVE_EVENT_LOGGER
|
||||
Reference in New Issue
Block a user