mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 11:44:21 +00:00
C# bindings generator cleanup
- Normal log messages are no longer warnings. - BindingsGenerator is no longer a singleton. - Added a log function.
This commit is contained in:
parent
bf1fe11143
commit
c20a3823a2
7 changed files with 139 additions and 108 deletions
|
|
@ -34,6 +34,8 @@
|
|||
#include "core/ustring.h"
|
||||
#include "core/variant.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
String sformat(const String &p_text, const Variant &p1 = Variant(), const Variant &p2 = Variant(), const Variant &p3 = Variant(), const Variant &p4 = Variant(), const Variant &p5 = Variant());
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
|
|
@ -44,4 +46,15 @@ String escape_csharp_keyword(const String &p_name);
|
|||
|
||||
Error read_all_file_utf8(const String &p_path, String &r_content);
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define _PRINTF_FORMAT_ATTRIBUTE_1_0 __attribute__((format(printf, 1, 0)))
|
||||
#define _PRINTF_FORMAT_ATTRIBUTE_1_2 __attribute__((format(printf, 1, 2)))
|
||||
#else
|
||||
#define _PRINTF_FORMAT_ATTRIBUTE_1_0
|
||||
#define _PRINTF_FORMAT_ATTRIBUTE_1_2
|
||||
#endif
|
||||
|
||||
String str_format(const char *p_format, ...) _PRINTF_FORMAT_ATTRIBUTE_1_2;
|
||||
String str_format(const char *p_format, va_list p_list) _PRINTF_FORMAT_ATTRIBUTE_1_0;
|
||||
|
||||
#endif // STRING_FORMAT_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue