hideakitai/DebugLog

LogPrecision does not name a type

MarcCosgaya opened this issue · 1 comments

Hello,

I am trying to compile a small C++ program for testing hideakitai/MsgPack. However, I get the following error:

DebugLog/DebugLog.h:22:39: error: ‘LogPrecision’ in namespace ‘arx::debug’ does not name a type
   22 | using DebugLogPrecision = arx::debug::LogPrecision;
      |                                       ^~~~~~~~~~~~

LogPrecision is used here:

using DebugLogPrecision = arx::debug::LogPrecision;

But if ARDUINO is not defined, LogPrecision is not available:

#ifdef ARDUINO
enum class LogPrecision {
ZERO,
ONE,
TWO,
THREE,
FOUR,
FIVE,
SIX,
SEVEN,
EIGHT,
};
#endif

I suggest replacing line 22 with:

#ifdef ARDUINO
using DebugLogPrecision = arx::debug::LogPrecision;
#endif

@MarcCosgaya Fixed. Thanks!