Browse Source

Reimplement no-op version of DLOG to avoid C++ compiler warning

cl-refactor
Paweł Bylica 10 years ago
parent
commit
0602fcde6e
  1. 18
      libevmjit/Utils.h

18
libevmjit/Utils.h

@ -20,5 +20,21 @@ std::ostream& getLogStream(char const* _channel);
#define DLOG(CHANNEL) ::dev::evmjit::getLogStream(#CHANNEL)
#else // Release
#define DLOG(CHANNEL) true ? std::cerr : std::cerr
namespace dev
{
namespace evmjit
{
struct Voider
{
void operator=(std::ostream const&) {}
};
}
}
#define DLOG(CHANNEL) true ? (void)0 : ::dev::evmjit::Voider{} = std::cerr
#endif

Loading…
Cancel
Save