Преглед на файлове

Include stuff only when necessary

Daniele Bartolini преди 11 години
родител
ревизия
fd74e2342f
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      engine/core/Log.h

+ 2 - 3
engine/core/Log.h

@@ -26,10 +26,9 @@ OTHER DEALINGS IN THE SOFTWARE.
 
 
 #pragma once
 #pragma once
 
 
-#include "Device.h"
-#include "ConsoleServer.h"
-
 #if defined(CROWN_DEBUG) || defined(CROWN_DEVELOPMENT)
 #if defined(CROWN_DEBUG) || defined(CROWN_DEVELOPMENT)
+	#include "Device.h"
+	#include "ConsoleServer.h"
 	#define CE_LOGI(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::INFO, msg, ##__VA_ARGS__)
 	#define CE_LOGI(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::INFO, msg, ##__VA_ARGS__)
 	#define CE_LOGD(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::DEBUG, msg, ##__VA_ARGS__)
 	#define CE_LOGD(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::DEBUG, msg, ##__VA_ARGS__)
 	#define CE_LOGE(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::ERROR, msg, ##__VA_ARGS__)
 	#define CE_LOGE(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::ERROR, msg, ##__VA_ARGS__)