Skip to content

Commit 384c62f

Browse files
committed
Add capitalized PRINT_VERBOSE macro alongside the lowercase one
1 parent 9b22b41 commit 384c62f

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
@@ -61,13 +61,16 @@ extern void print_error(const String &p_string);
6161
extern bool is_print_verbose_enabled();
6262

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

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

0 commit comments

Comments
 (0)