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]
pull/186/head
xfx 2018-10-06 07:33:05 +08:00
parent c6da2c0abe
commit e909f800d0
1 changed files with 2 additions and 2 deletions

View File

@ -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