Skip to content

Commit 8ac701c

Browse files
committed
Add capitalized PRINT_VERBOSE macro alongside the lowercase one
1 parent 4ebf67c commit 8ac701c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/string/print_string.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,16 @@ extern void print_error(const String &p_string);
6262
extern bool is_print_verbose_enabled();
6363

6464
// This version avoids processing the text to be printed until it actually has to be printed, saving some CPU usage.
65-
#define print_verbose(m_text) \
65+
#define PRINT_VERBOSE(m_text) \
6666
{ \
6767
if (is_print_verbose_enabled()) { \
6868
print_line(m_text); \
6969
} \
7070
}
7171

72+
// For compatibility, and for parity with the print_line() function, also provide as lowercase.
73+
#define print_verbose PRINT_VERBOSE
74+
7275
inline void print_line(const Variant &v) {
7376
__print_line(stringify_variants(v));
7477
}

0 commit comments

Comments
 (0)