Patch - Désactive les logs en build shipping - V
Désactive complètement les logs en build shipping pour améliorer les performances et réduire la taille du binaire final.
This commit is contained in:
@@ -44,6 +44,7 @@ inline int size_t_to_int(size_t x)
|
|||||||
// --- Macros for logging with different severity levels --- //
|
// --- Macros for logging with different severity levels --- //
|
||||||
// --------------------------------------------------------- //
|
// --------------------------------------------------------- //
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
#define LOG(msg, level) Logger::Get().Log(msg, __FILE__, __LINE__, level)
|
#define LOG(msg, level) Logger::Get().Log(msg, __FILE__, __LINE__, level)
|
||||||
#define LOG_INFO(msg) Logger::Get().Log(msg, __FILE__, __LINE__, Logger::LogLevel::Info)
|
#define LOG_INFO(msg) Logger::Get().Log(msg, __FILE__, __LINE__, Logger::LogLevel::Info)
|
||||||
#define LOG_WARNING(msg) Logger::Get().Log(msg, __FILE__, __LINE__, Logger::LogLevel::Warning)
|
#define LOG_WARNING(msg) Logger::Get().Log(msg, __FILE__, __LINE__, Logger::LogLevel::Warning)
|
||||||
@@ -58,6 +59,20 @@ inline int size_t_to_int(size_t x)
|
|||||||
return false; \
|
return false; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define LOG(msg, level) ((void)0)
|
||||||
|
#define LOG_INFO(msg) ((void)0)
|
||||||
|
#define LOG_WARNING(msg)((void)0)
|
||||||
|
#define LOG_ERROR(msg) ((void)0)
|
||||||
|
#define LOG_DEBUG(msg) ((void)0)
|
||||||
|
#define LOG_SHUTDOWN(msg) ((void)0)
|
||||||
|
#define LOG_INIT(msg) ((void)0)
|
||||||
|
|
||||||
|
#define R_LOG_ERROR(result,msg) ((void)0)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
// ---------------------------------------------------- //
|
// ---------------------------------------------------- //
|
||||||
// --- Macros for the Entity Component System (ECS) --- //
|
// --- Macros for the Entity Component System (ECS) --- //
|
||||||
// ---------------------------------------------------- //
|
// ---------------------------------------------------- //
|
||||||
|
|||||||
Reference in New Issue
Block a user