Skip to content

Commit 42b4760

Browse files
committed
Add capitalized PRINT_VERBOSE macro alongside the lowercase one
1 parent d705613 commit 42b4760

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

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

70+
// For compatibility, and for parity with the print_line() function, also provide as lowercase.
71+
#define print_verbose PRINT_VERBOSE
72+
7073
template <typename... Args>
7174
void print_line(Args... p_args) {
7275
Variant variants[sizeof...(p_args)] = { p_args... };

0 commit comments

Comments
 (0)