Skip to content

Commit 5456cce

Browse files
committed
Add capitalized PRINT_VERBOSE macro alongside the lowercase one
1 parent 3d91a48 commit 5456cce

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

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

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

0 commit comments

Comments
 (0)