Split error macro into two versions (format vs non-formating) to allow format checking at compile-time
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Nz
|
||||
|
||||
inline void MTLParser::Error(const std::string& message)
|
||||
{
|
||||
NazaraError("{0} at line #{1}", message, m_lineCount);
|
||||
NazaraErrorFmt("{0} at line #{1}", message, m_lineCount);
|
||||
}
|
||||
|
||||
inline void MTLParser::Flush() const
|
||||
@@ -64,7 +64,7 @@ namespace Nz
|
||||
|
||||
inline void MTLParser::Warning(const std::string& message)
|
||||
{
|
||||
NazaraWarning("{0} at line #{1}", message, m_lineCount);
|
||||
NazaraWarningFmt("{0} at line #{1}", message, m_lineCount);
|
||||
}
|
||||
|
||||
inline void MTLParser::UnrecognizedLine(bool error)
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace Nz
|
||||
|
||||
inline void OBJParser::Error(const std::string& message)
|
||||
{
|
||||
NazaraError("{0} at line #{1}", message, m_lineCount);
|
||||
NazaraErrorFmt("{0} at line #{1}", message, m_lineCount);
|
||||
}
|
||||
|
||||
inline void OBJParser::Flush() const
|
||||
@@ -164,7 +164,7 @@ namespace Nz
|
||||
|
||||
inline void OBJParser::Warning(const std::string& message)
|
||||
{
|
||||
NazaraWarning("{0} at line #{1}", message, m_lineCount);
|
||||
NazaraWarningFmt("{0} at line #{1}", message, m_lineCount);
|
||||
}
|
||||
|
||||
inline bool OBJParser::UnrecognizedLine(bool error)
|
||||
@@ -180,7 +180,7 @@ namespace Nz
|
||||
|
||||
if (m_errorCount > 10 && (m_errorCount * 100 / m_lineCount) > 50)
|
||||
{
|
||||
NazaraError("Aborting parsing because of error percentage");
|
||||
NazaraError("aborting parsing because of error percentage");
|
||||
return false; //< Abort parsing if error percentage is too high
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user