Merge pull request #50655 from JFonS/sname_opt

Editor StringName and Viewport optimizations
This commit is contained in:
Rémi Verschelde
2021-07-20 21:49:32 +02:00
committed by GitHub
11 changed files with 80 additions and 66 deletions

View File

@ -167,6 +167,6 @@ bool operator!=(const char *p_name, const StringName &p_string_name);
StringName _scs_create(const char *p_chr, bool p_static = false);
#define SNAME(m_arg) ([]() { static StringName sname = _scs_create(m_arg, true); return sname; })()
#define SNAME(m_arg) ([]() -> const StringName & { static StringName sname = _scs_create(m_arg, true); return sname; })()
#endif // STRING_NAME_H