浏览代码

Merge pull request #186 from xfxdev/nativescript-1.1

Fix compile error of 'WARN_PRINT' and 'ERR_PRINT'.
Thomas Herzog 7 年之前
父节点
当前提交
b4ab2d2d9b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/core/Defs.hpp

+ 2 - 2
include/core/Defs.hpp

@@ -113,7 +113,7 @@ typedef float real_t;
 #endif
 #endif
 
 
 #ifndef WARN_PRINTS
 #ifndef WARN_PRINTS
-#define WARN_PRINTS(msg) WARN_PRINT(msg.utf8().get_data())
+#define WARN_PRINTS(msg) WARN_PRINT((msg).utf8().get_data())
 #endif
 #endif
 
 
 #ifndef ERR_PRINT
 #ifndef ERR_PRINT
@@ -121,7 +121,7 @@ typedef float real_t;
 #endif
 #endif
 
 
 #ifndef ERR_PRINTS
 #ifndef ERR_PRINTS
-#define ERR_PRINTS(msg) ERR_PRINT(msg.utf8().get_data())
+#define ERR_PRINTS(msg) ERR_PRINT((msg).utf8().get_data())
 #endif
 #endif
 
 
 #ifndef ERR_FAIL
 #ifndef ERR_FAIL