From 5959349f341a2380c0c3f41ec40a1e8e0d969d00 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Wed, 29 Jan 2025 14:49:20 +0100 Subject: refactor: move emulation logic into sys --- lib/nes/common/debug.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/nes/common/debug.hh (limited to 'lib/nes/common/debug.hh') diff --git a/lib/nes/common/debug.hh b/lib/nes/common/debug.hh new file mode 100644 index 0000000..409d55a --- /dev/null +++ b/lib/nes/common/debug.hh @@ -0,0 +1,15 @@ +#pragma once + +#ifdef NES_ENABLE_DEBUG_OUTPUT + +#include + +#define NES_DEBUG_LOG(name, ...) \ + spdlog::info("[" #name "] " __VA_ARGS__) + +#else + +#define NES_DEBUG_LOG(name, fmt, ...) \ + (void)0 + +#endif \ No newline at end of file -- cgit v1.3.1