Fix compile error of 'WARN_PRINT' and 'ERR_PRINT'.

cannot pass non-trivial object of type 'godot::String' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs]
This commit is contained in:
xfx
2018-10-06 07:33:05 +08:00
parent c6da2c0abe
commit e909f800d0

View File

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