mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Merge pull request #60046 from Zylann/print_line_function
This commit is contained in:
commit
df51e5fab0
@ -61,6 +61,14 @@ extern bool _print_error_enabled;
|
||||
extern void __print_line(String p_string);
|
||||
extern void print_error(String p_string);
|
||||
extern void print_verbose(String p_string);
|
||||
#define print_line(...) __print_line(stringify_variants(__VA_ARGS__))
|
||||
|
||||
inline void print_line(Variant v) {
|
||||
__print_line(stringify_variants(v));
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
void print_line(Variant p_var, Args... p_args) {
|
||||
__print_line(stringify_variants(p_var, p_args...));
|
||||
}
|
||||
|
||||
#endif // PRINT_STRING_H
|
||||
|
Loading…
Reference in New Issue
Block a user