summaryrefslogtreecommitdiff
path: root/lib/nes/util/debug.hh
blob: 409d55aeebdeb5768bf8a26e6b10c35740430939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#ifdef NES_ENABLE_DEBUG_OUTPUT

#include <spdlog/spdlog.h>

#define NES_DEBUG_LOG(name, ...) \
  spdlog::info("[" #name "] " __VA_ARGS__)

#else

#define NES_DEBUG_LOG(name, fmt, ...) \
  (void)0

#endif